Genry(gm) Extended modification of the Kiosotto indicator.
Now there are two operating modes:
Faithful and Smooth .
What else has been improved:
- No-Repaint - both modes look only to the past (i + j);
- Incrementality - with each tick, 1–2 bars are recalculated, not the entire history;
- Protection against division by zero and array out of bounds;
- Reference line 1.0 is pressure neutral.
- Performance : the greediness of the algorithm is reduced to a minimum of O(N⋅(Len+Lookback)).
You can hang both indicator instances next to each other (Faithful + Smooth) - the differences in their peaks give an excellent picture:
Faithful shows the momentum,
Smooth - its stability.
Faithful preserves the original Kyosotto's concept, but removes the bugs and lags of the old implementation. Period = 150
In Smooth, I retained the essence of the original (comparing buying and selling pressure, like RSI), but instead of "searching for extremes," I use "continuous weighting" (Stochastic-like weighting). This eliminates the "jaggedness" and zero values that appeared in the original when the price doesn't update the extremes. At the bottom of the histogram, the bullish and bearish lines, when crossed, signal a trend reversal. Period = 15.
Посмотреть вложение 600900