Download MetaTrader 5

Open BuyStop Order

To add comments, please log in or register
Have you made a screenshot in MetaTrader? Share it with friends!
joel.victor
13
joel.victor 2015.03.10 00:49 

Hi, I'm trying to do my first ea, but the following error occurs OrderSend error 130, when I try to put a buystop order .

OrderSend(Symbol(),OP_BUYSTOP,0.01,9291.5,3,9255,600,"BUY Order "+TimeCurrent(),0,0,Red) ;

StopLevel = 10.

Ask = 9279.5

Sorry for my bad english. 

 

Thanks. 

Irwan Adnan
886
Irwan Adnan 2015.03.10 17:31  
joel.victor:

Hi, I'm trying to do my first ea, but the following error occurs OrderSend error 130, when I try to put a buystop order .

OrderSend(Symbol(),OP_BUYSTOP,0.01,9291.5,3,9255,600,"BUY Order "+TimeCurrent(),0,0,Red) ;

StopLevel = 10.

Ask = 9279.5

Sorry for my bad english. 

 

Thanks. 

Try using below and if there is no error, then check again your original parameters. (SL, TP, and comment)

 

OrderSend(Symbol(),OP_BUYSTOP,0.01,9291.5,3,0,0,"",0,0,Red) ;
To add comments, please log in or register