OPEN-SOURCE SCRIPT

Percentage Range Indicator

已更新
The Percentage Range Indicator is useful for assessing the volatility of pairs for percentage-based grid bots. The higher the percentage range for a given time period, the more trades a grid bot is likely to generate in that period. Conversely, a grid bot can be optimised by using grids that are less than the Percentage Range Indicator value.

I have been using the Percentage Range Indicator based on the one hour time period and 168 periods of smoothing (seven days based on one-hour periods).

Enjoy.
版本注释
Script updated to give options for different smoothing -- simple moving average, exponential moving average and weighted moving average. Other code also tidied up.

This script only calculates the range from the high to the low for the period. See my other script, ATRP Arthur, for calculation of the average true range percent. The true range takes into account gaps between periods.
版本注释
Updated published chart.
GRIDHistorical VolatilityrangeVolatility

开源脚本

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

想在图表上使用此脚本?

免责声明