Differential_Average_By_Sultonov - MetaTrader 5 script

Real author : Sevan 62
Sultonov Smooth Differential Indicator. The indicator line shows the average cumulative sum of bull and bear power over the user-defined period.
Bull power is calculated by the following formula:
BullsPower(i) = SUM(Closing Price(i) - Closing Price(i + 1), N) / BUN
Where:
Therefore, use the following formula to calculate the power withheld:
BearsPower(i) = SUM(Closing Price(i + 1) - Closing Price(i), N) / BEN
Where:
The final indicator applies additional smoothing to the obtained lines.
//+------------------------------------------------+ //| Indicator input | //+------------------------------------------------+ Input unit i_n period = 1000 ; // Calculate period Input Smooth_Method XMethod=MODE_SMA_; // Smooth average method Input unit X length = 12 ; // smoothing depth Input integer X phase = 15 ; // Smoothing parameter, //---- For JJMA, changes in the range of -100...+100 will affect the quality of the transient process; //---- For VIDIA this is the CMO period, for AMA this is a slow average Enter Applied_price_IPC=PRICE_CLOSE_; // price constant Enter integer shift = 0 ; // indicator moves horizontally in units of bars
The indicator consists of two lines, filling the space between them, with colors corresponding to the direction of the trend. Higher lines show the stronger side. Line intersections (color changes) indicate a trend change and are a good time to trade in the direction of strength that appears to be higher than the other line.
The indicator uses the category smoothing algorithm.mqh library. How to use this class is described in detail in the article "Average price series for intermediate calculations without using additional buffers" .
The original indicator was developed in MQL4 language and published in the code base on September 22, 2017.

Figure 1. Differential_Average_By_Sultonov indicator
Attachment download
📎 Differential_Average_By_Sultonov.mq5 (16.12 KB)
📎 SmoothAlgorithms.mqh (130.2 KB)
Source: MQL5 #21437
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •