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:
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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 ?