Forum

EA schließt Position nicht

Hallo, ich benötige eure Hilfe. Mein EA öffnet zwar über folgenden Code die Position: if (signal) { CTrade trade; trade.SetExpertMagicNumber(MAGICMA); trade.PositionOpen(_Symbol, ORDER_TYPE_BUY, TradeSizeOptimized(), SymbolInfoDouble(_Symbol

"EA not closing position | ADX SAR MA"

Could someone please help me to understand why my EA is not closing the position? if (type == (long)POSITION_TYPE_BUY && rt[0].close < ma[0] || rt[0].close < sar[0] || adx_main[0] < 25) signal = true; if(type==(long) POSITION_TYPE_SELL && rt[0].close > ma[0] || rt[0].close > sar[0] || adx_main[0]