Honestcowboy

Intraday Volatility Bands [Honestcowboy]

Honestcowboy Mis à jour   
The Intraday Volatility Bands aims to provide a better alternative to ATR in the calculation of targets or reversal points.

How are they different from ATR based bands?

While ATR and other measures of volatility base their calculations on the previous bars on the chart (for example bars 1954 to 1968). The volatility used in these bands measure expected volatility during that time of the day.

Why would you take this approach?

Markets behave different during certain times of the day, also called sessions.
Here are a couple examples.
  • Asian Session (generally low volatility)
  • London Session (bigger volatility starts)
  • New York Session (overlap of New York with London creates huge volatility)

Generally when using bands or channel type indicators intraday they do not account for the upcoming sessions. On London open price will quickly spike through a bollinger band and it will take some time for the bands to adjust to new volatility.

This script will show expected volatility targets at the start of each new bar and will not adjust during the bar. It already knows what price is expected to do at this time of day.

Script also plots arrows when price breaches either the top or bottom of the bands. You can also set alerts for when this occurs. These are non repainting as the script knows the level at start of the bar and does not change.

🔷 CALCULATION

Think of this script like an ATR but instead it uses past days data instead of previous bars data. Charts below should visualise this more clearly:

The scripts measure of volatility is based on a simple high-low.

The script also counts the number of bars that exist in a day on your current timeframe chart. After knowing that number it creates the matrix used in it's calculations and data storage.

See how it works perfectly on a lower timeframe chart below:

Getting this right was the hardest part, check the coding if you are interested in this type of stuff. I commented every step in the coding process.

🔷 SETTINGS

Every setting of the script has a tooltip but I provided a breakdown here:

Some more examples of different charts:
Notes de version:
Changed title of a setting in Data optimisations days inputs.
Added a check if matrix is full before plotting any of the signal triangles or alerting.

✅ Learn how I trade as a FUND MANAGER with my private indicators here.

FREE telegram channel —> t.me/honestalgo
FREE telegram channel —> t.me/honestalgo
FREE telegram channel —> t.me/honestalgo
Script open-source

Dans le véritable esprit de 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 le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?