Hello,
In pinned topic http://www.forexfactory.com/showthread.php?t=193727 i found script which closes all ordes with strict comment.
My question is .. can someone modify this to allow strings something like "*" in linux.
I would like to close for example multiple orders witch comments:
EA1 XXX 123
EA1 XXX 345
EA1 XXX 456
by "EA1 XXX *"
Is that possibile?
Thank you in advance.
In pinned topic http://www.forexfactory.com/showthread.php?t=193727 i found script which closes all ordes with strict comment.
Inserted Code
for (cnt = total ; cnt >=0 ; cnt--) { OrderSelect(0,SELECT_BY_POS,MODE_TRADES); if (OrderComment() == comment_text) { if(OrderType()==OP_BUY) OrderClose(OrderTicket(),OrderLots(),Bid,5,Violet); if(OrderType()==OP_SELL) OrderClose(OrderTicket(),OrderLots(),Ask,5,Violet); if(OrderType()>OP_SELL) OrderDelete(OrderTicket()); } }
My question is .. can someone modify this to allow strings something like "*" in linux.
I would like to close for example multiple orders witch comments:
EA1 XXX 123
EA1 XXX 345
EA1 XXX 456
by "EA1 XXX *"
Is that possibile?
Thank you in advance.