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.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Deviation %
float
0.7
devPct
Source
string
High/Low
srcMode
Enable TF 1
bool
true
useTF1
tf1
timeframe
1
tf1
Enable TF 2
bool
true
useTF2
tf2
timeframe
3
tf2
Enable TF 3
bool
true
useTF3
tf3
timeframe
5
tf3
Enable TF 4
bool
true
useTF4
tf4
timeframe
15
tf4
Enable TF 5
bool
true
useTF5
tf5
timeframe
30
tf5
Show all 22 settings
Setting
Type
Default
Variable
Enable TF 6
bool
true
useTF6
tf6
timeframe
60
tf6
Enable TF 7
bool
true
useTF7
tf7
timeframe
240
tf7
Enable TF 8
bool
true
useTF8
tf8
timeframe
D
tf8
Show TF Labels (table)
bool
true
showLabels
Up Color (after swing low)
color
#00e676
upColor
Down Color (after swing high)
color
#ff4757
dnColor
Neutral / Init
color
#2a2f3c
neutColor
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.
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
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
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
This indicator plots the Average Directional Index in a separate pane and colors the line teal or maroon according to whether plus DI is above minus DI. A horizontal key level and a silver background mark periods when ADX exceeds that threshold. With labels en
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
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