Функция расчета лота для MQL5
double LotByRisk(string pair) { if(InpRisk <= 0) return(Lot); double Free = AccountInfoDouble(ACCOUNT_MARGIN_FREE); double LotVal = SymbolInfoDouble(pair,SYMBOL_TRADE_TICK_VALUE); double Min_Lot = SymbolInfoDouble(pair,SYMBOL_VOLUME_MIN); double Max_Lot = SymbolInfoDouble(pair,SYMBOL_VOLUME_MAX); double Step1 = SymbolInfoDouble(pair,SYMBOL_VOLUME_STEP); double slpss=stopLoss;…