Need help to add comments for expiration orders

To add comments, please log in or register
Chris Tan
11
Chris Tan  

Dear MQL4 community, thanks for all the support from everyone out there. I need some help on how to add in some comments into my OrderSend() orders which expired without any trades.

I know how to add in comments for those EA orders which successfully trade, but for some of my orders which passed expiration time without any trading, the only comment added by the server was " expiration [2010.12.27 05:45] "

I have many expired orders which were not traded at all, and all of them had the similar comments " expiration [2010.12.27 xx:xx] ", I would like to add some comments to identify which EA they were from.

The comments which I added inside OrderSend() does not appear if the order expires without any trade execution.

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)

Appreciate if somebody out there may know how to fix this.

Best regards, Chris.

Enotrek
158
Enotrek  
OrderSend(string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, "YOUR COMMENT HERE", int magic=0, datetime expiration=0, color arrow_color=CLR_NONE) 
rv
461
rv  

Because Comments can change by broker, mostly write something about TP or SL or Expiration in the comment field.

Comments you can not change.

But you can find out while looking in the Order History ... OrderProfit is empty.

pradit thongget
39
pradit thongget  

Help me "EA not show comment"

not show comment

William Roeder
20228
William Roeder  
  1. pradit thongget: Help me "EA not show comment"
    Do you really expect an answer? We can't see your broken code. There are no mind readers here and our crystal balls are cracked.

  2. Everything @rv said
Keith Watford
Moderator
20477
Keith Watford  
pradit thongget:

Help me "EA not show comment"



Do not double post.

I have removed your other topic that is just a copy of this .

To add comments, please log in or register