Indicator · Pine Script v6 · Own pane

BD ZigZag MTF Consensus

by BD-Chess

A separate-pane indicator that runs a percentage-deviation ZigZag state machine on up to eight timeframes, from one minute to daily, and shows whether each is currently in an up leg after a swing low or a down leg after a swing high.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code224
Settings22inputs
LicenceNone stated
Last updateyesterday28 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Settings choose the deviation percent, high/low or close source, which timeframes are active, and colors. A table can label each timeframe. It requests data from other timeframes, so higher-timeframe readings can change while their bar is open.

Details

Published by

BD-Chess on GitHub

Type

Indicator, Pine Script v6

Draws

Separate pane below the chart

Category

Trend

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Deviation %float0.7devPct
SourcestringHigh/LowsrcMode
Enable TF 1booltrueuseTF1
tf1timeframe1tf1
Enable TF 2booltrueuseTF2
tf2timeframe3tf2
Enable TF 3booltrueuseTF3
tf3timeframe5tf3
Enable TF 4booltrueuseTF4
tf4timeframe15tf4
Enable TF 5booltrueuseTF5
tf5timeframe30tf5
Show all 22 settings
SettingTypeDefaultVariable
Enable TF 6booltrueuseTF6
tf6timeframe60tf6
Enable TF 7booltrueuseTF7
tf7timeframe240tf7
Enable TF 8booltrueuseTF8
tf8timeframeDtf8
Show TF Labels (table)booltrueshowLabels
Up Color (after swing low)color#00e676upColor
Down Color (after swing high)color#ff4757dnColor
Neutral / Initcolor#2a2f3cneutColor
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

Schaff Trend Cycle

by everget
948 stars

This indicator plots the Schaff Trend Cycle in a separate pane. It subtracts a slow exponential moving average from a fast one, applies a stochastic cycle twice, and smooths each result to form a 0–100 oscillator. Line color follows the slope, or the upper and

Indicator v4 Oscillators & momentumTrend
Updated 11 days ago · GPL-3.0 GitHub repository of Schaff Trend Cycle

This indicator plots a Supertrend-based trend-following setup in a separate pane and skips conditions it treats as a sideways market. A volatility range is built from an ATR value, with RMA, SMA, EMA, or WMA smoothing, or from a fixed point distance. Optional

Indicator v5 TrendVolatility & bands
Updated 1 year ago · MPL-2.0 GitHub repository of Trend Following Setup - Sideways Market Skipper

Beep Boop

by magic8bot
409 stars

This indicator calculates a modified MACD oscillator and signal line alongside a trend EMA filter, plotting the output as a stylized column histogram in a separate pane. Instead of plotting true MACD distance, it quantifies positive and negative histogram mome

Indicator v4 Oscillators & momentumTrend
Updated 3 years ago · MIT GitHub repository of Beep Boop

[RS]Standardized Trend Map

by ricardosantos79
261 stars

Standardized Trend Map calculates series momentum relative to active price range across 40 distinct lookback periods ranging from 2 to 80 bars on an exponential moving average source. Each standardized calculation rounds to an integer values of -1, 0, or 1 to

Indicator v4 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of [RS]Standardized Trend Map

ADX Histogram

by harryguiacorn
219 stars

This indicator calculates and displays the Average Directional Index (ADX) as a column histogram in a separate pane. It evaluates market trend strength by calculating directional movement metrics based on specified smoothing and DI length inputs. When the ADX

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of ADX Histogram

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers