OPEN-SOURCE SCRIPT
[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:
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 de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.