Download MetaTrader 5
To add comments, please log in or register
Find out the most discussed Forum topics. Have a look at the Wall section!
maduwantha
10
maduwantha 2016.07.18 05: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);

maduwantha
10
maduwantha 2016.07.20 04: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 

whroeder1
13620
whroeder1 2016.07.20 14: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.
maduwantha
10
maduwantha 2016.07.21 09: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
/
To add comments, please log in or register