Binary Option OrderSend() help

 

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);

 

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.
 
WHRoeder:
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.
Ok thanks you Mr WHRoeder
Reason: