OPEN-SOURCE SCRIPT

RVE v3 Retracement Validity Engine

162
Core Philosophy

RVE v2 only gives signals when ALL of the following align:

Higher-Timeframe Trend Alignment

Trades only in the direction of the HTF trend (default: 4H EMA filter)

No counter-trend noise

Real Retracement Location (Not Extension)

Price must pull back into the EMA20–EMA50 zone

Filters fake “grazes” — requires meaningful interaction with the zone

Controlled Pullback (No Panic Candles)

Uses ATR + candle body + wick analysis

Filters out:

Panic momentum candles

Chaotic liquidity sweeps

Over-extended retracements

Close-Based Confirmation (Execution Discipline)

No signals mid-candle

Entry only after reclaim of EMA levels

⚙️ Entry Modes (Important)
🟢 AGGRESSIVE (Recommended for Retracement Traders)

Triggers on EMA9 reclaim after zone touch

Earlier entries

Best for traders who struggle with late entries

🔵 SAFE

Requires reclaim of EMA9 + EMA20

Fewer signals

Higher confirmation, later entry

🧠 Smart Filters Included

✅ HTF trend filter (lookahead-safe)

✅ ATR-adaptive pullback control

✅ Optional 2-bar zone confirmation

✅ Anti-chop cooldown (prevents signal spam)

✅ Optional key-level reclaim gate

✅ ATR-buffered SL guide (zone + structure)

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.