OPEN-SOURCE SCRIPT

Klinger Oscillator Advanced

Atualizado
The Klinger Oscillator is not fully implemented in Tradeview. While the description at de.tradingview.com/chart/?solution=43000589157 is complete, the implementation is limited to the pure current volume movement. This results in no difference compared to the On Balance Volume indicator.

However, Klinger's goal was to incorporate the trend as volume force in its strength and duration into the calculation. The expression ((V x [2 x ((dm/cm) - 1)] x T x 100)) for volume force only makes sense as an absolute value, which should probably be expressed as ((V x abs(2 x ((dm/cm) - 1)) x T x 100)). Additionally, there is a need to handle the theoretical possibility of cm == 0.

Since, in general, significantly more trading volume occurs at the closing price than during the day, an additional parameter for weighting the closing price is implemented. In intraday charts, considering the closing price, in my opinion, does not make sense.

The TradeView implementation is displayed on the chart for comparison. Particularly in the analysis of divergence, significant deviations become apparent.
Notas de Lançamento
The Klinger Oscillator is not fully implemented in Tradeview. While the description at de.tradingview.com/chart/?solution=4... is complete, the implementation is limited to the pure current volume movement. This results in no difference compared to the On Balance Volume indicator.

However, Klinger's goal was to incorporate the trend as volume force in its strength and duration into the calculation. The expression ((V x x T x 100)) for volume force only makes sense as an absolute value, which should probably be expressed as ((V x abs(2 x ((dm/cm) - 1)) x T x 100)). Additionally, there is a need to handle the theoretical possibility of cm == 0.

Since, in general, significantly more trading volume occurs at the closing price than during the day, an additional parameter for weighting the closing price is implemented. In intraday charts, considering the closing price, in my opinion, does not make sense.

The TradeView implementation is displayed on the chart for comparison. Particularly in the analysis of divergence, significant deviations become apparent.

Update
Deleting debugging info's an renew the char
CyclesOn Balance Volume (OBV)

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal