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

The indicator is based on the Fatl indicator value and its signal line analysis. The signal line calculation algorithm is as follows. The period of each signal line is calculated by the arithmetic sequence formula:
Signal period (number) = starting length + number * step size
The value of the numeric variable ranges from 0 to StepsTotal. The Fatl indicator values for different periods are used to calculate the average value of the Fatl indicator. The calculation of the current trend direction is based on the average trend value of all signal lines.
Finally, the positive and negative values of the trend are averaged and used as indicator lines, displayed as a color histogram, using the DRAW_COLOR_HISTOGRAM2 painting style. The histogram color depends on the trend direction and the histogram width depends on the trend strength.
For each trend direction, 4 colors are used in the histogram. For indicator values outside overbought and oversold levels, dark colors are used. For overbought/oversold values, use lighter colors.
Indicator input parameters:
//+------------------------------------------------------------------------+ //|Indicator input parameters | //+------------------------------------------------------------------------+ Enter ENUM_APPLIED_PRICE apply price = PRICE_CLOSE ; // apply price //---- Enter Smooth_Method W_Method=MODE_JJMA; // Smoothing method Input integer starting length = 3 ; // Initial smoothing period Input integer W phase = 100 ; // phase //---- Input unit steps = 5 ; // steps Total number of steps in input unit = 10 ; //Total number of steps //---- Enter Smooth_Method SmoothMethod=MODE_JJMA; // Smoothing method Input integer smoothing length = 3 ; // smoothing length Input integer smoothing phase = 100 ; // phase Enter Applied_price_IPC=PRICE_CLOSE_; // Apply price //---- Enter Unit Upper = 80 ; // Overbought level (percentage) Input unit DN level = 20 ; // Oversold level (percentage) Input colorUpLevelsColor =blue; // color for overbought levels Input color DnLevelsColor=blue; // Color of oversold levels Input style level style=DASH_; // Level style Input width LevelsWidth=Width_1; // Level width
The indicator can be smoothed by choosing from a dozen possible versions:
It should be noted that the Phase1 and Phase2 parameters have completely different meanings for different smoothing algorithms. For JMA, it is an external phase variable that varies from -100 to +100. For T3, it is the smoothed ratio multiplied by 100 for better visualization; for VIDYA, it is the CMO oscillation period; for AMA, it is the slow EMA period. In other algorithms, these parameters do not affect smoothing. For AMA the fast EMA period is a fixed value, equal to 2 by default. For AMA, the ratio of raised powers is also equal to 2.
The indicator uses the SmoothAlgorithms.mqh library class (must be copied to terminal_data_folder\MQL5\Include). The use of the class "Average price series for intermediate calculations without using additional buffers" is described in detail in the article.

super fatal indicator
Attachment download
📎 smoothalgorithms.mqh (133.8 KB)
📎 ultrafatl.mq5 (11.7 KB)
Source: MQL5 #788
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •