rumpypumpydumpy

Candle-Box Ratio

Volatility compression/expansion indicator calculated from the ratio of the area of the candles to the area of a rectangle encompassing the candles over n bars.

Generally during a squeeze or compression the ratio between the candles and the rectangular area increases, ie the candles occupy a larger portion of the rectangle, and vice versa during a release/expansion. It is inherently low lag due to the lack of any averaging in the calculation since the start of an expansion/breakout will instantly change the dimensions of the encompassing rectangle and the corresponding ratio. A potential downside is that different lengths will produce significantly different results which will require tuning to optimize for specific instruments and timeframes.

Additional standard deviation bands to identify potential points of volatility change and the option to normalize the output using the stdev bands.
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?