Binary Option OrderSend() help

Back to topics list To post a new topic, please log in or register
avatar
3
maduwantha 2016.07.18 07:13
 

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


 

 

avatar
13006
avatar
3
maduwantha 2016.07.20 06:38 #
 

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 

avatar
13006
WHRoeder 2016.07.20 16:18 #
 
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.
avatar
3
maduwantha 2016.07.21 11:50 #
 
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
Back to topics list  

To add comments, please log in or register