MetaTrader 4 MT4 Libraries NormalizePrice – library for MetaTrader 4

NormalizePrice – library for MetaTrader 4

The function of adduction of the price to the correct form for the given symbol by means of rounding or discarding the excess.

I.e. if one tick is equal to 5 points then we need TakeProfit and StopLoss divisible by 5 for the order.

The NormalizePrice function allows to solve this problem.

It takes the following parameters:

Alternative:   Basic Trailing Stop - expert advisor for MetaTrader 4
  • price – the price that you need to normalize;
  • round – the method of normalization, if it is true then we adduce the prcie to the closest correct value (round), if it is false then we discard the excessive part (truncate). The true value is the default one.


📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks