Order error 2 when using risk percentage
-
Hello, starting today, I get order errors when exporting my EAs and backtesting them.
If I select "Risk % of balance" in my buy block, it fills a few orders when backtesting, and then only prints the following error message in the journal for each trade:
2021.06.16 10:07:02.384 2019.06.07 14:15:00 Gold (7) XAUUSD,M15: New trade error: Common error (2)
2021.06.16 10:07:02.384 2019.06.07 14:15:00 Gold (7) XAUUSD,M15: OrderSend error 2If I select fixed lots, everything works.
See the project here (using it for XAUUSD)
-
@nk0815 That is because 'risk % of balance' REQURES a specific stop loss level. Don't your strategy need a SL? Then select the option '% of balance -> lots' instead.
-
Hello,
I have the same problem but I applied "% of equity > lots". It works on some platforms but not with others.
Same error code
Have you got the solution please?