Hi All
is there a method using HistoryTotal purpose to be able to find a particular order (buy or sell) shut?
I tried using this code but it seems not working:

Inserted Code int hstTotal=HistoryTotal(); for(I=0; t lt; hstTotal; I ) if (OrderType()==OP_BUY OrderComment()==LONG) . .take some actions... if (OrderType()==OP_SELL OrderComment()==SHORT) . .take some actions...
And when a buy order was set up with OrderSelect I identified that using LONG as remark (and SHORT when a sell order):

Inserted Code Sell:. . . . OrderSend(Symbol(),OP_SELL,Lots,Entry,Slippage, StopLoss,TakeProfit,SHORT,0,0);. . . . Buy : . . . . OrderSend(Symbol(),OP_BUY,Lots,Entry,Slippage, StopLoss,TakeProfit,LONG,0,0);. . . .
Perhaps function OrderComment is not supported with in conjuction with MODE_HISTORY style? And in that case how can I resolve this issue?

thx a lot
Skyline