OztheWoz

Heatmapped Bollinger Bands

OztheWoz Uppdaterad   
Bollinger Bands have been used for many years to determine the volatility and potential reversal area of markets. This script takes standard Bollinger Bands (BB) and transforms it into a heatmap of reversal areas.

A basic explanation on how this indicator works is:
- Yellow is where the price likes to stay,
- Orange is where the price might begin to reverse in a weak trend, and
- Red is where the price will either pause to let the yellow range catch up, or where the price will jump back down into the yellow range to stabilize.

For educational purposes: this script is essentially just taking the standard method of creating Bollinger Bands (seen in the 'Main Lines' portion of the script), coloring the plots 'na' so that they aren't seen, and using the 'fill' function to plot the yellow to red rainbow up to the top. I believe I made the yellow range 0.2*stdev to 1*stdev, the orange range 1*stdev to 2*stdev, and the red range 2*stdev to 3*stdev. You can get the hex code rainbow from any website that has a color slider.

** Disclaimer: THIS IS NOT TRADING ADVICE. Bollinger Bands should be used in conjunction with other indicators to make better decisions but NO STRATEGY IS PERFECT. Always backtest any strategy before using it live. **
Versionsinformation:
Incorrect copyright username in script after username change. Corrected to @OztheWoz.
Skript med en öppen källkod

I sann TradingView-anda har författaren publicerat detta skript med öppen källkod så att andra handlare kan förstå och verifiera det. Hatten av för författaren! Du kan använda det gratis men återanvändning av den här koden i en publikation regleras av våra ordningsregler. Du kan ange den som favorit för att använda den i ett diagram.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?