Disliked{quote} THANK YOU!!!!!! But still the same problem! My EA closes all orders, except when on 5 February when there is a 130 pip-spike. At this big spike the order doesn't close. How can I close my order in MQL? Printscreen: {image} My code is: void orderclose(int ticket,double lots,double price) { for(int i=0; i<100; i++) { RefreshRates(); if(OrderClose(ticket,lots,price,0,clrRed)) { break; //get out of the loop in case of success } else Sleep(1000); } }Ignored
- Post #15,962
- Quote
- Oct 21, 2016 9:43pm Oct 21, 2016 9:43pm
- Joined Dec 2013 | Status: Member | 727 Posts
Join our skype group.
- Post #15,964
- Quote
- Oct 22, 2016 2:55am Oct 22, 2016 2:55am
- Joined Dec 2013 | Status: Member | 727 Posts
Join our skype group.
- Post #15,966
- Quote
- Oct 22, 2016 6:00am Oct 22, 2016 6:00am
- Joined Nov 2015 | Status: Member | 2,964 Posts
Success is a Journey Not a Destination....... kind regards ramzam
- Post #15,967
- Quote
- Oct 22, 2016 8:25am Oct 22, 2016 8:25am
- Joined Nov 2015 | Status: Member | 2,964 Posts
Success is a Journey Not a Destination....... kind regards ramzam
- Post #15,969
- Quote
- Oct 22, 2016 9:34am Oct 22, 2016 9:34am
- Joined Oct 2015 | Status: loading... | 1,038 Posts
what we want:1+1+1+1+1+1+1+1=8 what market delivers:1+2+8+7-4+0-5+8-4-5=8
- Post #15,970
- Quote
- Edited 2:39pm Oct 22, 2016 10:08am | Edited 2:39pm
- Joined Apr 2015 | Status: Member | 1,077 Posts
(.)(.) think first ...
- Post #15,972
- Quote
- Edited 1:51pm Oct 22, 2016 10:38am | Edited 1:51pm
- | Joined Mar 2014 | Status: Member | 86 Posts
- Post #15,974
- Quote
- Oct 22, 2016 1:26pm Oct 22, 2016 1:26pm
- Joined Oct 2015 | Status: loading... | 1,038 Posts
what we want:1+1+1+1+1+1+1+1=8 what market delivers:1+2+8+7-4+0-5+8-4-5=8
- Post #15,975
- Quote
- Oct 22, 2016 4:00pm Oct 22, 2016 4:00pm
- Joined Dec 2013 | Status: Member | 727 Posts
Join our skype group.
- Post #15,977
- Quote
- Oct 22, 2016 7:42pm Oct 22, 2016 7:42pm
- Joined Dec 2013 | Status: Member | 727 Posts
Join our skype group.
- Post #15,978
- Quote
- Oct 22, 2016 8:18pm Oct 22, 2016 8:18pm
- | Joined Oct 2012 | Status: Member | 96 Posts
- Post #15,979
- Quote
- Oct 22, 2016 8:34pm Oct 22, 2016 8:34pm
- Joined Dec 2013 | Status: Member | 727 Posts
Join our skype group.
- Post #15,980
- Quote
- Oct 22, 2016 11:13pm Oct 22, 2016 11:13pm
- Joined Dec 2012 | Status: Member | 4,195 Posts
Follow price direction