[SpaghettiForex] RO - Regime Oscillator RO — Regime Oscillator is a market-state tool that classifies price action into three regimes: TREND, RANGE, or CHOP.
It outputs a Regime Index (0–100) designed to measure how “directional and structured” the current environment is. RO is not an overbought/oversold oscillator and it does not generate trade entries. Its purpose is to provide context and help you decide how selective you should be with your execution rules.
What it shows:
- Regime Index (0–100): a smoothed score representing the current market state.
- Regime label: TREND / RANGE / CHOP (with optional background shading).
- Bias label: UP / DOWN / FLAT, derived from moving-average slope.
- Optional component breakdown in the table (ADX, BB width, ATR relative, slope).
________________________________________
Screenshots (examples):
Screenshot 1 — TREND regime (directional phase)
Example where RO stays in TREND during a sustained directional move.
The Regime Index remains high and the table shows a clear bias (UP or DOWN).
RO identifies a sustained directional phase as TREND (high index + clear bias).
Screenshot 2 — RANGE regime (mean-reverting phase)
Example where RO identifies a RANGE environment (lower index + low trend strength).
Useful to visualise when price is mostly oscillating rather than expanding directionally.
RO identifies a range environment with a low index and a flat bias.
Screenshot 3 — CHOP regime (mixed / noisy conditions)
Example where RO stays in CHOP when the market lacks clean structure.
This helps avoid forcing “trend logic” into random or unstable price action.
RO stays in CHOP when price action lacks clean structure and transitions are frequent.
________________________________________
How it works (high level):
RO combines four normalised components (0–1) into a weighted score, then smooths it:
1. ADX (trend strength)
2. Bollinger Band Width (compression/expansion)
3. Relative ATR (current volatility vs baseline)
4. MA Slope (magnitude) (directionality)
The resulting Regime Index is mapped into regimes using thresholds. An optional Early Trend mode reduces lag by allowing TREND to trigger earlier when ADX is rising and directional bias is present.
How to use it (context, not signals):
- Use RO to filter conditions: apply different rules in TREND vs RANGE vs CHOP.
- Combine RO with your own structure/levels and risk management.
- If you want a faster response, use Early Trend (enabled by default). If you prefer fewer regime flips, increase smoothing or raise thresholds.
Alerts:
RO includes alerts (bar-close confirmed) for:
- Regime changed
- Trend regime start
- Range regime start
- Chop regime start
Important note:
RO is a context tool. It does not provide financial advice or performance guarantees. Market regimes can change quickly and false transitions are possible—always use proper risk management.
مؤشر Pine Script®






















