I’m using OnTradeTransaction() to monitor trades.
Is there a way to tell if the deal is being opened or closed?
Right now I’m filtering the callbacks using trans.type == TRADE_TRANSACTION_DEAL_ADD
Thanks.
I’m using OnTradeTransaction() to monitor trades.
Is there a way to tell if the deal is being opened or closed?
Right now I’m filtering the callbacks using trans.type == TRADE_TRANSACTION_DEAL_ADD
Thanks.
A deal is never “closed”. I suppose you mean a deal which result in opening or closing of a position ?
You have to use :
HistoryDealGetInteger(ticket,DEAL_ENTRY);
Sorry, so this is a puzzle to me. What is a “deal?” – is it the same as an executed order (a trade)?
thanks.
OK, thanks to you both