why the ordermagicnomber() always =0
int OrderSend( string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE)
Why is your MagicNumber in your OrderSend function a Type string
Remove " " from 123
Why is your MagicNumber in your OrderSend function a Type string
Remove " " from 123
why my mmt4 for this
| int OrderSend( | string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, void comment, void magic, void expiration, void arrow_color) |
and three cop all this
they are aaafx nord metatrade4
hi every friend,see me code
Please edit your post.
Please use this to post code . . . it makes it easier to read.
Please edit your post.
Please use this to post code . . . it makes it easier to read.
why my mmt4 for this int OrderSend( string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, void comment, void magic, void expiration, void arrow_color) and three cop all this they are aaafx nord metatrade4
That is incorrect . . . read the documentation . . . OrderSend() there is no variable of type void, only functions can be type void.
int OrderSend( string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE)
hi every friend,see me code
if(OrderSend(Symbol(),OP_BUY,0.1,Ask,300,0,0,"3","123",0,Red)>0)
{
Alert("ok");
}
i use up code buy a tick
buy i use use down code read the ordermagicnomber,the maigic alway=0,why
for(int i=0;i<OrdersTotal();i++)
{
if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES))
{
Alert(OrderMagicNumber());
}
}
thp EA alert me the magicnumber is 0