Originally Posted by
;
from that point:
double lot=Lots;
...
if(lossesgt;1) lot=NormalizeDouble(lot-lot*losses/DecreaseFactor,1);
first, you've got initial lot size, termed Lots (look at extern variable, at the top of the code)
let us state Lots = 0.2.
Then there is DecreaseFactor, lets say DecreaseFactor=5
if your successive losses equals to 2 (losses greater than 1)
then lot size = 0.2 - 0.2*2/5 = 0.2 - 0.4/5 = 0.2 - 0.08 = 0.12
it is rounded to 1 decimal point =gt; NormalizeDouble(...,1)
0.12 =gt; 0.1
expect this help