Download MetaTrader 5

Open BuyStop Order

To add comments, please log in or register
joel.victor
13
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. 

Irwan Adnan
922
Irwan Adnan  
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