and i think there is a bug, you said max profit 0.05.
i bet 0.0001 x 980 and wont almost 0.097 btc
check
i dont think thats a bug, since you can aim for a higher max profit if youre willing to deal with a increasing house edge.
at least thats the way I understood the explanation in this thread somehwere above.