OPEN-SOURCE SCRIPT

Multiband Oscillator - Zigzag version

Just variation of Multi Band oscillator present here: Multi-Band-Channel-Oversold-Overbought-Oscillator

Changes are:
  • Instead of regular moving average, here I am using Zigzag Moving average. This is calculated in similar to as explained in: Zigzag-Cloud
  • Instead of ATR, using AZR (Average Zigzag Range) - Average-Zigzag-Range-AZR


Rest of the logic remains same.

  • Number of bands used 100 - which means, calculate 100 Bollinger bands with Std Dev Multiplier starting from 0.1 and with step 0.1 for the next one.
  • Which divides price ranges into 200 equal parts. Calculate what is the current range and plot them.
  • Overbought - Oversold levels are dynamics. They are dependent on the max and min state price has reached in last 80 days. Offset and factor can be used to adjust overbought oversold levels.

Bollinger Bands (BB)Keltner Channels (KC)overbought-oversoldZig Zag Indicator

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer