OPEN-SOURCE SCRIPT

Percentage Range Indicator

Telah dikemas kini
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.
Nota Keluaran
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.
Nota Keluaran
Updated published chart.
GRIDHistorical VolatilityrangeVolatility

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?

Penafian