Flat - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources - MetaTrader 5 Resources

A measure of market volatility.
During a strong trend, the indicator's colored points turn red, and during a weak trend, the indicator's colored points turn gray. Medium trends are shown in blue.
Indicator input parameters:
//+------------------------------------------------------------------------+ //|Indicator input parameters | //+------------------------------------------------------------------------+ Input unit smoothing = 10 ; // smoothing period Input ENUM_MA_METHOD ma_method= mode_SMA ; // smoothing type Enter ENUM_APPLIED_PRICE application price = PRICE_CLOSE ; // price type Input unit HL reference = 100 ; Input integer shift = 0 ; // Horizontal movement of the indicator (in bars) Input unit super high level = 60 ; // Strongest trend level Input unit high level = 40 ; // Level of strong trend Enter unit low level = 20 ; // weak trend level Input ENUM_LINE_STYLE level style = STYLE_DASHDOTDOT ; // Horizontal line style Input color level color = clear blue ; // color of level Input ENUM_WIDTH level width=w_1; //The width of the level
The indicator was originally written in MQL4 and first published in the code base of mql4.com on November 1, 2007.

Figure 1. Flat indicator
Attachment download
📎 flat.mq5 (10.73 KB)
Source: MQL5 #2060
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •