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
オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?