OPEN-SOURCE SCRIPT

Adaptive Fisherized Stochastic Center of Gravity

Updated
Introduction

I modified the script "Fisher Stochastic Center of Gravity" of DasanC for this indicator.
I added inverse Fisher transform, cycle period adaptiveness mode (Ehlers) and smoothing to it.
Moreover, I added buy and sell and beautified some stuff.
Lastly, it is also non-repainting!

Usage

This indicator can be used like a normal stochastic, but I don't recommend divergence analysis on it.
That fisherization stuff seems to make the graphs unuseable for that because it tries.

It works well on every timeframe I would say, but lower timeframes are recommended, because of the fast nature of stochastic.
Usually it does a good job on entry confirmation for reversals and trend continuation trades.

Recommended indicator to combine with this indicator is RSI cyclic smoothed v2.
This is the best RSI version I know. In trending market it is recommended to look more on the inner bands and in flat market it is recommended to look more on the outer bands.

When RSI shows oversold and this indicator shows a crossover of the Center of Gravity plot through the bottom line -> Long entry is confirmed
When RSI shows overbought and this indicator shows a crossunder of the Center of Gravity plot through the top line -> Short entry is confirmed

Settings

The adaptive mode is enabled by default to give you straight the whole indicator experience.
The default settings are optimized, but should be changed depending on the market.

An example:
Market has a low volatility and a high momentum -> I want a slower/higher length to catch the slower new highs and lows.
Market has higher volatility and a low momentum, -> I want a faster/lower length to catch the faster new highs and lows

Signals

Crossover
Buy -> cog crossover signalLine
Sell -> cog crossunder signalLine

Overbought/Oversold Crossover
Buy -> cog crossover lowerBand
Sell -> cog crossunder lowerBand

I use this indicator a lot, because I don't know a better stochastic on this community here.
DasanC did an awesome work with his version I used as base for this script.
Enjoy this indicator and let the profit roll! 🔥
Release Notes
Added alerts
Release Notes
Updated buy and sell lebel position
Release Notes
Added inverse Fisher transformation (thought I already added it sry haha)
Fixed adaptive mode bug
Changed default values
Added normal stoch option
Added plots for adaptive lengths
Release Notes
Added new signal mode
Separated CG and stoch plot
Added "Enable Plot" input options
Restructured inputs
Removed ehlers lib and added the calculation functions manually
Added Kalman filter

Release Notes
Removed manual normalization and plot options from the inputs.
Updated the signal logic
Added min val for NET smoothing
Optimized plots
Release Notes
Moved fisherization to first input group
Added "Homodyne Discriminator" as adaptive mode
Added timeframe selection
Changed stoch plot color from yellow to purple
Fixed signal mode bug
Release Notes
Renamed "Cycle Period" to "Median" (adaptive mode)
Fixed wrong length plot name
Release Notes
Fixed wrong Hilbert Transform calculation
Release Notes
Renamed getCyberCycle() to getMedianDc()
Release Notes
Fixed wrong Inphase-Quadrature Transform calculation
Release Notes
Decreased Hann Window smoothing lag by smoothing price instead of the indicator
Added gradient
Release Notes
Removed wrong Kalman Filter
Added T3 smoothing
Turned T3 smoothing by default on
Release Notes
Made NET enableable as own option
Added tooltips
Added T3 input parameters
Optimized adaptive length algorithms
Release Notes
Fixed bug where you couldn't select the other T3 type
adaptiveCOGehlerehlerscogehlerssmoothedstochasticnon-repaintnon-repaintingno-repaintStochastic Oscillatorstochasticoscillator

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer