double or int in ordersend's comment

 

Hi,

I want my EA to put out e.g. the EMA or Magic Number in the comment field.

Is it possible? How?

Thanks, Sebastian

int Magic=105;
t=OrderSend(CHART,OP_SELL,VolumeLots,Bid,SlipPips,s,p,"Magic",k,0,OrangeRed);
 
int OrderSend( string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string DoubleToStr(iMA(.......),Digits), int magic=0, datetime expiration=0, color arrow_color=CLR_NONE)
 
Note: Brokers can change comments, including complete replacement
Reason: