double GetCorrectLot(string f_symbol, // instrument finansowy double f_value) // wartość wolumenu { if(f_value<MarketInfo(f_symbol,MODE_MINLOT)) return NormalizeDouble(MarketInfo(f_symbol,MODE_MINLOT),2); if(f_value>MarketInfo(f_symbol,MODE_MAXLOT)) return NormalizeDouble(MarketInfo(f_symbol,MODE_MAXLOT),2); return NormalizeDouble(f_value,2); }