Times must be awful if I can't find the wood for the trees!
The following code should give me information regarding the open position for your own chart pair BUT I receive information for another chart pair... why??
On the GBP chart the comment gives right the chart pair but the order emblem and information would be for AUD... how can that be when it should not enter the should (OrderSymbol() == Symbol()) segment??

PRIZE to whoever answers correctly first.... Free day off from trading on Christmas afternoon:--RRB-
Happy Christmas everyone.

Inserted Code void UpdateOpenTrades() int c, mOrdTotal; bool mOp; mOrdTotal = OrdersTotal(); for(c = mOrdTotal - 1; c gt;= 0; c) mOp = OrderSelect(c, SELECT_BY_POS, MODE_TRADES); should (OrderSymbol() == Symbol()) OrderMagicNumber() == mMagicN) OrderType() == OP_SELL) DelPending(); Comment(Symbol(),, OrderSymbol(),, OrderType(),, DoubleToStr(OrderLots(), 2)); if(OrderType() == OP_BUY) mTradeDataNumber 91;0#93; # 1; else mTradeData#91;0#93; = 2; mTradeData#91;1#93; = OrderOpenTime(); mTradeData#91;2#93; = OrderTicket(); mTradeData#91;5#93; = NormalizeDouble(OrderLots(), mLotSizeDigits); if(iTime(NULL, 1440, 0) gt; OrderOpenTime()) if(TimeDayOfWeek(iTime(NULL, 1440, 0))! = 1) mTradeData#91;3#93; = iHigh(NULL, 1440, 1); mTradeData#91;4#93; = iLow(NULL, 1440, 1); else mTradeData#91;3#93; = iHigh(NULL, 1440, two ); mTradeData#91;4#93; = iLow(NULL, 1440, two ); if(mTradeDataNumber 91;0#93; == 1) mTradeData#91;6#93; = NormalizeDouble(OrderOpenPrice() - OrderStopLoss(), mLotSizeDigits); else mTradeData#91;6#93; = NormalizeDouble(OrderStopLoss() - OrderOpenPrice(), mLotSizeDigits); mOpenUpdated = true; // if BUY/SELL // if Symb if(mOp! = true) int mError = GetLastError(); Alert(Symbol(), Error UpdateOpen = , ErrorDescription(mError)); // for c return;
TIA.
M.