Closed Order

For obtaining information about a specific closed order (History Order). Just set a shift for target order. The shift for Latest closed order is zero and for one order before is 1 and one before that 2 and so on. In the table below (N=Shift)

Note: These are those orders which opened by current magic number and current symbol. It means ESB only detects its own order.

NameParametersDescription
[CLOSED] TicketReturns ticket of the Nth closed order
[CLOSED] Profit ($)Returns profit of the Nth closed order
[CLOSED] LotReturns lots of the Nth closed order
[CLOSED] Stop LossReturns stop loss of the Nth closed order (only MT4)
[CLOSED] Take ProfitReturns take profit of the Nth closed order (only MT4)
[CLOSED] Open PriceReturns open price of the Nth closed order
[CLOSED] Close PriceReturns close price of the Nth closed order
[CLOSED] DurationReturns open duration of the Nth closed order in seconds
[CLOSED] Open TimeReturns passed seconds from open of the Nth closed order
[CLOSED] Close TimeReturns passed seconds from close of the Nth closed order
[CLOSED] Open CandleReturns the open candle number of the Nth closed order
[CLOSED] Close CandleReturns the open candle number of Nth closed order
[CLOSED] SwapReturns swap value of the Nth closed order
[CLOSED] CommissionReturns calculated commission of the Nth closed order
[CLOSED] FeeReturns calculated fee of the Nth closed order
[CLOSED] TypeReturns Type of the Nth closed order (BUY or SELL)
[CLOSED] Is Closed by SLReturns True if Nth closed order is Closed by SL
[CLOSED] Is Closed by TPReturns True if Nth closed order is Closed by TP