Hello,
please could someone tell me why the following code alters prices on additional charts which the EA is not attached to? It basically uses a moving average as a SL,
I thought that the line if (OrderSymbol() == Symbol()) made it chart specific?

thanks.

Int totalorders = OpenOrders;

for(int I=OrdersTotal()-1;igt;=0;I--)


OrderSelect(I, SELECT_BY_POS,MODE_TRADES);
if (OrderSymbol() == Symbol())


if (OrderType() == OP_BUY)

sl=movavg;
OrderModify(OrderTicket(),OrderOpenPrice(),sl,Orde rTakeProfit(),0,Green);

if (OrderType() == OP_SELL)

sl=movavg (Spread*10)*Point;
OrderModify(OrderTicket(),OrderOpenPrice(),sl,Orde rTakeProfit(),0,Green);



//--
}