DislikedI received your code I have no idea what this is intended to do for(q=0; q<OrdersTotal(); q++) { if(OrderSelect(q,SELECT_BY_POS,MODE_TRADES) && OrderMagicNumber()==magic) { return; } } but what it means is that if the EA has an open order, then it returns from OnTick, so the code to delete the order cannot be executed. I suggestyed this as a possibility in post #8 Remove that block of codeIgnored
- #23
- Jul 6, 2015 7:40am Jul 6, 2015 7:40am
- Joined Oct 2013 | Status: Trader | 1,025 Posts
Return To Disorder
- #24
- Jul 6, 2015 7:47am Jul 6, 2015 7:47am
- Joined Oct 2012 | Status: Trader | 1,959 Posts
Please Do Not PM Me With Coding Enquiries
- #27
- Last Post: Jul 6, 2015 7:55am Jul 6, 2015 7:55am
- Joined Oct 2013 | Status: Trader | 1,025 Posts
Return To Disorder