maybe add this for checking the stop level points
int stopLevelPoints = (int)MarketInfo(Symbol(), MODE_STOPLEVEL); if(stopLevelPoints==0){ stopLevelPoints=(int)SymbolInfoInteger(_Symbol,SYMBOL_TRADE_STOPS_LEVEL); }