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
deVries:
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
zdj229:
hi every friend,see me code
Please edit your post.
Please use this to post code . . . it makes it easier to read.
RaptorUK:
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
zdj229:
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)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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