PROTECTED SOURCE SCRIPT
ARDO (v2.4.7) Moving Averages v1.1

ARDO Moving Averages v1.1 (Overlay)
Companion overlay that recreates ARDO driver states (Spreads A/B, LinReg state + slope/gradient, tiers/MK tiers, gate pass/block) and maps those states onto up to 5 moving average overlays + one optional MA-to-MA fill.
ARDO v2.4.6 (original indicator)

What this overlay does
Core concepts (quick read)
How to set it up (recommended workflow)
Inputs explained (by group)
1) Sources & Moving Averages (ARDO Core)
2) Linear Regression & Gradient
3) Tiers & Population
4) Region Rendering (BG / regime palette)
5) Gate (Pass/Block)
6) Overlay Moving Averages (MA1–MA5)
Bull/Bear (A vs B) definition
Alerts (built-in alertconditions in v1.1)
How to use Gate (and how to loosen/tighten it)
Practical “read” using the default overlay roles
Notes
Companion overlay that recreates ARDO driver states (Spreads A/B, LinReg state + slope/gradient, tiers/MK tiers, gate pass/block) and maps those states onto up to 5 moving average overlays + one optional MA-to-MA fill.
ARDO v2.4.6 (original indicator)

What this overlay does
- Computes ARDO “driver states” internally (no external source required): Spread A, Spread B, LinReg (4-state), LinReg slope/accel → gradient opacity, quartile/tier regimes, MK tiers, and Gate pass/block.
- Paints MA overlays using selectable “Color Modes” (Spread A, Spread B, ARDO LinReg, MK Tier, Quartile Background, Gate Pass, Bull/Bear A vs B, or Fixed).
- Optional Fill between two overlay MAs using a selected color mode (intended for regime/bull-bear shading between MA lines).
Core concepts (quick read)
- Baseline / MA A / MA B define Spread A and Spread B (% distance vs baseline).
- LinReg is a regression of a selected source (Spread A, Spread B, or Spread(A+B)).
- LinReg State (4 colors) is derived from slope sign and acceleration (trend speeding up vs slowing down): Green / Orange / Red / Gray.
- Gradient Opacity scales line opacity based on slope magnitude (strong vs weak).
- Tier / Quartile maps current regime into bins (Q0–H4) using rolling percentiles (or manual thresholds).
- MK Tier is an alternate tier engine (Standard / Asymmetric / Mirror BG).
- Gate is a boolean pass/block that can combine spread and trend requirements (optional).
How to set it up (recommended workflow)
- Pick ARDO Core MAs (Baseline, MA A, MA B) and your main LinReg Source.
- Tune LinReg Length + Gradient Scale to match your timeframe (shorter = faster flips, longer = smoother).
- Decide Tier mode (Standard vs Asymmetric) and whether tiers use All Bars or Pivots Only.
- Set up Gate (or leave off): use it as a “permission layer” for entries.
- Configure your overlay MAs (1–5) and assign each a Color Mode aligned to its job:
MA1 = fast impulse (often Spread A)
MA2 = trend state (often ARDO LinReg)
MA3 = slower confirmation (often Spread B)
MA4 = gate/permission readout (Gate Pass)
MA5 = regime (MK Tier) - Enable Fill only if you want regime shading between two MAs (keep it simple: one fill only).
Inputs explained (by group)
1) Sources & Moving Averages (ARDO Core)
- Price Source: price used for MA calculations (default close).
- Baseline MA Type/Length: reference MA for spreads.
- MA A Type/Length: “A” spread driver (usually faster).
- MA B Type/Length: “B” spread driver (often slower fast MA).
- EMA Fast / EMA Slow: used only if the EMA gate toggle is enabled.
2) Linear Regression & Gradient
- LinReg Length: lookback used by regression.
- LinReg Source: Spread A, Spread B, or Spread(A+B).
- Slope Lookback: bars used to compute slope as (linreg - linreg[n]) / n.
- Adaptive Opacity Scale: derives slope “cap” from a rolling percentile (reduces volatility-regime distortion).
- Fixed Scale Cap: used if adaptive scaling is off.
- Min/Max Opacity: clamps gradient range.
3) Tiers & Population
- Tier Mode: Standard vs Asymmetric (changes percentile boundary logic).
- Tier Population: All Bars vs Pivots Only.
- Manual Thresholds: if enabled, uses user cutoffs instead of computed percentiles.
- Auto-Percentile Window: rolling window size for percentiles.
4) Region Rendering (BG / regime palette)
- BG colors for Q0/Q1/Q2/Q3/Q4/H4: the palette used for “Quartile Background” color mode and MK “Mirror BG”.
- Pivot Sensitivity: relevant only for Pivots Only population.
5) Gate (Pass/Block)
- Gate: SpreadA > LinReg (toggle)
- Gate: EMA Fast > EMA Slow (toggle)
- Min Spread A (%)
- Min |LinReg Slope|
- Gate PASS/BLOCK colors: also used by Gate Pass color mode.
6) Overlay Moving Averages (MA1–MA5)
- MA Len / Type: SMA, EMA, WMA, Wilder, Triangular, HMA, Adaptive.
- Color Mode:
Fixed
ARDO Spread A
ARDO Spread B
ARDO LinReg (4-state + gradient opacity)
MK Tier
Quartile Background (Q0–H4 palette)
Gate Pass
Bull/Bear (A vs B) - Base Color: used for Fixed (and as fallback).
- Line Width
- Style (if present): line / stepline / markers depending on the MA slot.
Bull/Bear (A vs B) definition
- Bull when MA A > MA B
- Bear when MA A < MA B
Alerts (built-in alertconditions in v1.1)
- Spread A StateState changed (any change)
Turned Green / Orange / Red / Gray - LinReg StateState changed (any change)
Turned Green / Orange / Red / Gray - LinReg GradientGradient High (slope strength high)
Gradient Low (slope strength low) - GateGate Pass ON
Gate Pass OFF - Bull/Bear FlipBullish flip (A crosses above B)
Bearish flip (A crosses below B) - Tier / QuartileEntered Q0
Entered Q1
Entered H3
Entered H4 - Simple Alignment
- LinReg Green AND SpreadA Green (basic “momentum aligned” condition)
- LinReg Green AND SpreadA Green (basic “momentum aligned” condition)
How to use Gate (and how to loosen/tighten it)
- Use Gate as a filter, not as the entire strategy: it’s best as “permission to trade” plus your own trigger.
- If Gate is too strict:
Disable EMA Fast > EMA Slow gate (trend filter) OR disable SpreadA > LinReg gate (structure filter).
Lower Min Spread A threshold.
Lower Min |LinReg Slope| threshold.
Increase LinReg Length slightly to reduce noisy flips (sometimes helps pass stability). - If Gate is too loose:
- Enable both gate components (SpreadA>LinReg AND EMA Fast>Slow).
- Raise Min Spread A and/or Min |LinReg Slope|.
- Shorten LinReg Length to react faster (but can increase chop).
- Enable both gate components (SpreadA>LinReg AND EMA Fast>Slow).
Practical “read” using the default overlay roles
- MA1 (fast, Spread A mode): impulse / early acceleration cues.
- MA2 (trend, LinReg mode): regime + momentum state; opacity tells you strength.
- MA3 (confirmation, Spread B): slower confirmation; helps avoid “one-candle impulse traps”.
- MA4 (Gate Pass): permission layer; reduces counter-trend entries.
- MA5 (MK Tier): regime band; helps distinguish “deep OS/OB context” vs mid-zone noise.
Notes
- This is an overlay; it’s designed to complement the original ARDO oscillator pane.
https://www.tradingview.com/script/2wxlHaut-ARDO-Adaptive-Regression-Deviation-Oscillator-v2-4-6/
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.