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
- #15,966
- Oct 22, 2016 5:00am Oct 22, 2016 5:00am
- Joined Nov 2015 | Status: Trader | 2,976 Posts
Success is a Journey Not a Destination....... kind regards ramzam
- #15,967
- Oct 22, 2016 7:25am Oct 22, 2016 7:25am
- Joined Nov 2015 | Status: Trader | 2,976 Posts
Success is a Journey Not a Destination....... kind regards ramzam
- #15,969
- Oct 22, 2016 8:34am Oct 22, 2016 8: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
- #15,970
- Edited 1:39pm Oct 22, 2016 9:08am | Edited 1:39pm
- Joined Apr 2015 | Status: Trader | 1,082 Posts
(.)(.) think first ...
- #15,974
- Oct 22, 2016 12:26pm Oct 22, 2016 12: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
- #15,980
- Oct 22, 2016 10:13pm Oct 22, 2016 10:13pm
- Joined Dec 2012 | Status: Trader | 4,709 Posts
The Average Discount Everything