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.


MT5 Indicator – Download Instructions

Flat is a Metatrader 5 (MT5) indicator and the essence of the forex indicator is to transform the accumulated history data.

Flat provides for an opportunity to detect various peculiarities and patterns in price dynamics which are invisible to the naked eye.

Based on this information, traders can assume further price movement and adjust their strategy accordingly.

How to install Flat.mq5?

  • Download Flat.mq5
  • Copy Flat.mq5 to your Metatrader Directory / experts / indicators /
  • Start or restart your Metatrader 5 Client
  • Select Chart and Timeframe where you want to test your indicator
  • Search “Custom Indicators” in your Navigator mostly left in your Metatrader 5 Client
  • Right click on Flat.mq5
  • Attach to a chart
  • Modify settings or press ok
  • Indicator Flat.mq5 is available on your Chart

How to remove Flat.mq5 from your Metatrader 5 Chart?

  • Select the Chart where is the Indicator running in your Metatrader Client
  • Right click into the Chart
  • “Indicators list”
  • Select the Indicator and delete

Click here below to download MT5 Indicator:


Trade With Lowest Spreads
Previous articleMACD-2
Next articleWPR 3HTF