The Dual-Phase Trend Regime Oscillator evaluates market trend strength by switching between fast and slow trend oscillators depending on the current volatility environment.
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
Dual-Phase Trend Regime Oscillator (Zeiierman) measures trend using price correlation with time across configurable lookback periods. An internal volatility engine classifies market states into high or low volatility using standard deviation and dynamic median splits. The indicator plots in a separate pane, displaying bullish or bearish regime fills and markers when the active oscillator crosses key thresholds. Main settings adjust oscillator lengths, volatility calculation windows, refit intervals, and color schemes.
Dual-phase fast and slow trend oscillators
Dynamic internal volatility regime detection
Price correlation with time trend measurement
Configurable volatility refit intervals and smoothing
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Length (Slow Trend Oscillator)
int
36
length_low
Length (Fast Trend Oscillator)
int
18
length_high
Volatility Refit Interval
int
50
refit_interval
Current Volatility Period
int
20
vol_period
Volatility Smoothing Length
int
5
vol_smooth_len
Bullish Color
color
color.rgb(33, 150, 243, 0)
bull_col
Bearish Color
color
color.rgb(255, 82, 82, 0)
bear_col
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 generates trade entry signals and target levels optimized for 1-hour timeframes, designed for external signal extraction. It calculates 7-period and 16-period EMAs alongside 10-period RSI and ATR filters. Long signals occur when the fast EMA cro
MultiIndicator combines multiple technical indicators into a single separate pane to save chart space. It calculates and displays market regime detection based on ordinary least squares regression, a Holt exponential smoothing crossover, normalized RSI, ADX, a
This indicator plots an oscillator in a separate pane. It builds several SuperTrend series across a user-defined factor range and step, using ATR as the band width. On each bar it measures the distance between the close and each SuperTrend output, then groups
The Supertrended RSI [AlgoAlpha] indicator plots the Relative Strength Index combined with a Supertrend overlay in a separate indicator pane. It first computes standard RSI, with an optional Hull Moving Average smoothing step, and computes a secondary moving a
This indicator plots a smoothed stochastic oscillator in a separate pane, with K and D lines, a midsection background, and adjustable overbought and oversold levels. Optional highlights mark overbought or oversold breakouts and K/D crossovers, and ribbon filli
The Adaptive Cycle Detector estimates the dominant market cycle from WaveTrend oscillator zero-crossing frequency and applies smoothing to recommend adaptive indicator lengths. Fast markets with frequent crossings receive shorter lengths while slow swing marke