OPEN-SOURCE SCRIPT

Percentage Range Indicator

Mis à jour
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.
Notes de version
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.
Notes de version
Updated published chart.
GRIDHistorical VolatilityrangeVolatility

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité