Check your return codes and find out why. What are Function return values ? How do I use them ? - MQL4 forum and Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
Mr. WHRoeder
thanks for the responce.
the error code is 133 return
the problem is when i am put this code as exp time 300. it's work fine. if i change is 60sec or 120sec. i got this error. my broker is also allowed 60, 120, 300, 600 etc.. borker is (Go market) can you explane what is the my wrong
OrderSend(Symbol(), OP_SELL, 10, Ask, 100, 0, 0, "BO exp:300", "543254325423", 0, clrGreen); //this is work well
OrderSend(Symbol(), OP_SELL, 10, Ask, 100, 0, 0, "BO exp:120", "543254325423", 0, clrGreen); // but dosen't work tis
i unable to find any solution for this from the internet
maduwantha:
the problem is when i am put this code as exp time 300. it's work fine. if i change is 60sec or 120sec. i got this error. my broker is also allowed 60, 120, 300, 600 | One of those two statements is false. Ask your broker. |
maduwantha: the problem is when i am put this code as exp time 300. it's work fine. if i change is 60sec or 120sec. i got this error. my broker is also allowed 60, 120, 300, 600 | One of those two statements is false. Ask your broker. |

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
i tried to create a EA for Binary option. My platform is MT4 (cretrader fx). but i can open the order. how can i use the order send function plz help me to solve this problum
this is the codes that i tried
OrderSend(Symbol(),OP_BUY,10.0,iClose(Symbol(),0,0),0,0,0,"BO exp:60",0,0,clrWhite);
OrderSend(Symbol(), OP_BUY, 10.0, Close[0], 0, 0, 0, "BO exp:60", 1234, 0, clrWhite);