tmpascoe / Publications
Forum
Trying to close EA as soon as the stop loss has been triggered
Can someone help please? I've written the attached code but it looks back at the total trade history rather than the history since the EA was loaded. I need the EA to allow a trade but then close if the stop loss was triggered. Any help appreciated. for(int i = OrdersHistoryTotal()-1; i >= 0 ; i--)