Help with MagicNumber order

 

I can't seem to get this string to work with the MagicNumber, It works just fine without the MagicNumber. I have a "extern int = 1113" in the top of the ea.

Thank You for your time

OrderSend(Symbol(),OP_BUYSTOP,lot,Ask+buy*Point,slippage,Ask-stop*Point,Ask+tp*Point,MagicNumber,0);

 
kalkaska:

I can't seem to get this string to work with the MagicNumber, It works just fine without the MagicNumber. I have a "extern int = 1113" in the top of the ea.

Thank You for your time

OrderSend(Symbol(),OP_BUYSTOP,lot,Ask+buy*Point,slippage,Ask-stop*Point,Ask+tp*Point,MagicNumber,0);

You are missing the comment parameter between takeprofit and magic number (for empty comment just add ""):

OrderSend(Symbol(),OP_BUYSTOP,lot,Ask+buy*Point,slippage,Ask-stop*Point,Ask+tp*Point,"",MagicNumber,0);

 
gordon wrote >>

You are missing the comment parameter between takeprofit and magic number (for empty comment just add ""):

OrderSend(Symbol(),OP_BUYSTOP,lot,Ask+buy*Point,slippage,Ask-stop*Point,Ask+tp*Point,"",MagicNumber,0);

Thank You So Much