Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | Flat

Real author:

Pedro Puado

The indicator for measuring market volatility.

During strong trends colored dots of the indicator turn red, during weak trends dots are gray. Moderate trends are shown in blue.

Indicator input parameters:

//+----------------------------------------------+
//| Indicator input parameters                   |
//+----------------------------------------------+
input uint Smooth=10;                                // Smoothing period
input ENUM_MA_METHOD      ma_method=MODE_SMA;        // Type of smoothing
input ENUM_APPLIED_PRICE  applied_price=PRICE_CLOSE; // Price type
input uint HLRef=100;
input int Shift=0;                                   // Horizontal shift of the indicator in bars
input uint ExtraHighLevel=60;                        // The level of the strongest trend
input uint HighLevel=40;                             // The level of a strong trend
input uint LowLevel=20;                              // The level of a weak trend
input ENUM_LINE_STYLE LevelStyle=STYLE_DASHDOTDOT;   // Style of level lines
input color LevelColor=clrBlue;                      // Color of the levels
input ENUM_WIDTH LevelWidth=w_1;                     // Width of the levels 

Originally this indicator has been written in MQL4 and was first published in the Code Base at mql4.com on 01.11.2007.

MetaTrader Experts, Indicators, Scripts and Libraries

Figure 1. The Flat indicator

2060

Best MetaTrader Indicators + Profitable Expert Advisors