Arun s / Publications
Forum
HistoryDealsTotal() is returning only 1
Hi , I am writing a code in OnTradeTransaction() event handler ,that whenever order hit stoploss i am taking it's position id of deal type DEAL_ENTRY_OUT and iterating HistoryDealTotal() to find DEAL_ENTRY_In for that position_id but problem is HistoryDealTotal() is holding only latest deal for