ka66

[KA] Rate of Change

Rate of Change (ROC)

Given a source series, calculates a running Rate of Change -- simply the percentage difference between the current value of said source to the value N bars back.

One nicety here, compared to the stock tradingview indicator is allowance to force plot certain bounds. This allows more visibility on the relative movement of the series within the plotted bounds.

For example, you know the particular bounds for a timeframe, and can visibly see when those bounds are violated.

See:

StockCharts ROC Explanation


Inputs:

  • Source Series, anything indicator series on chart
  • N Bars, the reference no. of bars to compare change since.
  • Mandatory % Bounds, if value specified, this +value and -value, will be plotted
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.

Vuoi usare questo script sui tuoi grafici?