ATRNorm – indicator MetaTrader 5

Real author:

Ivan Kornilov

ATRNorm is the normalized version of Average True Range. The indicator can also normalize tick volume, standard deviation, etc. using ValueType input parameter. ATRNorm has been created to detect flat areas.

This indicator was first implemented in MQL4 and published in Code Base 10.05.2012 (in Russian).

The indicator uses SmoothAlgorithms.mqh library classes (must be copied to the terminal_data_folder\MQL5\Include). The use of the classes was thoroughly described in the article “Averaging Price Series for Intermediate Calculations Without Using Additional Buffers”.

Indicator input parameters:

//+----------------------------------------------+
//| Indicator input parameters                   |
//+----------------------------------------------+
input uint period=12;                             // Indicator period
input uint ma=12;                                 // Smoothing period
input IndType ValueType=ATR;                      // Normalized indicator type
input uint normLimit=24;                          // Normalizing period
input ENUM_APPLIED_VOLUME VolumeType=VOLUME_TICK; // Volume
input int Shift=0;                                // Horizontal shift of the indicator in bars

ATRNorm


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