if(bearishCross && sells<MaxTradesPerSym) { sl = NormalizeDouble(ask + stoploss,(int)SymbolInfoInteger(symbol,SYMBOL_DIGITS)); tp = NormalizeDouble(ask - stoploss*TakeProfitRR,(int)SymbolInfoInteger(symbol,SYMBOL_DIGITS)); trade.SetExpertMagicNumber(MagicNumber); trade.Sell(volume,symbol,bid,sl,tp,"EA_SELL"); lastActionTime=TimeCurrent(); } ManageTrailing(symbol); }