backtesting
-
I am backtesting the EA: EMA con FRMM on alpari EURUSD H4.
The idea is to explore the Fixed risk (money).
Everything seems working unless in 13 August 2013 a huge size position is opened and the trade lose more than 400€, while the maximum acceptable risk is set to 60€. I can not understand the reason: is a risk fissed algorithm issue, backtesting, ...
The mistake seems to be that wrong lot opened but I can not undertsnd why I have visually backtested but I did not get any further information.Thank you in advance
-
Wow, this was old and dangerous bug, I wonder how it was not reported long ago

I think I fixed it, it was only for some MM ("Risk" ones) and only for pending orders. At some place in the code I was using ask/bid instead of the open price, and this caused wrong calculations for the lot size.You can try it now, is it ok?
-
__Wow, this was old and dangerous bug, I wonder how it was not reported long ago

I think I fixed it, it was only for some MM ("Risk" ones) and only for pending orders. At some place in the code I was using ask/bid instead of the open price, and this caused wrong calculations for the lot size.You can try it now, is it ok?[/quote:f16fg3fz]
Yes its ok. I deserve a gift for my bug finding skills
