Simple recovery loss in 10 trades - page 2

 
WHRoeder:
try calculating per_trade AFTER you find the recovery_amount AND number successful trades since the last loss.


hmm it does not work. I think the initial value of recovery_trades has to be 0, since there are no losses at the beginning. Some of the printet output of the recovery_trades is:

2013.08.21 19:49:43 2010.07.14 13:50 10days_average-kopi EURUSD,Daily: 10

2013.08.21 19:49:42 2010.07.07 00:13 10days_average-kopi EURUSD,Daily: 10

2013.08.21 19:49:42 2010.07.07 00:13 10days_average-kopi EURUSD,Daily: OrderSend error 4051

2013.08.21 19:49:42 2010.07.07 00:13 10days_average-kopi EURUSD,Daily: invalid lots amount for OrderSend function


instead the output should be: and so on....

013.08.21 19:49:43 2010.07.14 13:50 10days_average-kopi EURUSD,Daily: 9

2013.08.21 19:49:42 2010.07.07 00:13 10days_average-kopi EURUSD,Daily: 10

2013.08.21 19:49:42 2010.07.07 00:13 10days_average-kopi EURUSD,Daily: -2

2013.08.21 19:49:42 2010.07.07 00:13 10days_average-kopi EURUSD,Daily: -1

as long as the recovery_trades is above 0, it should recover the last loss

what to do ?