I have made an automated system that opens a position when criteria meets.
though Today i had a problem on Real account.
i ve got a message saying "Your order could not be executed".
so i had to open it manual.
Is there a way to make the strategy trying to reopen the position if an error like this happens again?
Like some code that after executing the command
- Code: Select all
if mAllowTrade then createTrueMarketOrder("B", Amount, symbol, stop, false, 50); end
will check if position opened and if not will try to reopen it?
Thank you for your help