PROTECTED SOURCE SCRIPT

Ghost Signal v3.7

19
================================================================================
GHOST SIGNAL v3.7 - PUBLICATION DESCRIPTION
================================================================================

TITLE: Ghost Signal v3.7 - Trend Continuation & Mean Reversion System

================================================================================
FULL DESCRIPTION
================================================================================

Ghost Signal v3.7 is a complete trading system that combines two complementary
strategies to capture opportunities in both trending and mean-reverting markets.

------------------------------
STRATEGIES
------------------------------

GHOST - Trend Continuation
- Identifies high-quality pullbacks to the 20 EMA in confirmed trending markets
- Requires EMA stacking (20 > 50 > 200 for longs, inverted for shorts)
- Multi-timeframe alignment ensures you're trading with the bigger picture
- Quality gates filter out low-probability setups

REAPER - Mean Reversion
- Catches overextension at VWAP +/- 2 standard deviations
- Requires wick rejection (price tested extreme but rejected)
- Volume confirmation ensures institutional participation
- Works in any market condition

------------------------------
KEY FEATURES
------------------------------

Multi-Timeframe Alignment
- Daily, 4H, 1H, and 15m trend confirmation
- Weighted scoring system (Daily = 1.5, 4H = 1.0, 1H = 0.5, 15m = 0.25)
- Max score = 3.25 when all timeframes aligned
- Only trade when higher timeframes agree

Quality Gate System (GHOST)
- ADX >= 20 (trend must have strength)
- EMA spacing (trend is real, not bunched EMAs)
- RSI in healthy zone (25-65 for longs, 35-75 for shorts)
- Volume confirmation on entry
- VWAP alignment (above VWAP for longs)

Smart Filtering
- Time lockouts (avoid open auction, lunch chop, MOC)
- Daily signal limits (prevent overtrading)
- Signal cooldowns (no rapid-fire entries)
- Breakout confirmation (wait for momentum)

Professional Visuals
- Clean EMA ribbon (20/50/200)
- VWAP with standard deviation bands
- Regime background coloring
- Clear signal labels (GHOST/REAPER/PB)
- Real-time info panel with key metrics

Full Alert System
- Individual alerts for GHOST Long/Short
- Individual alerts for REAPER Long/Short
- Pullback setup alerts
- Combined "any signal" alerts

------------------------------
RECOMMENDED SETTINGS
------------------------------

Timeframe: 2-5 minute charts
Markets: Liquid stocks (TSLA, GOOG, NVDA, QQQ, ORCL, etc.)
Session: Regular trading hours (9:30 AM - 4:00 PM ET)

Best Performers (from backtesting):
- TSLA: +$672 (37 trades) - GHOST excels here
- GOOG: +$394 (16 trades) - Clean trends
- ORCL: +$271 (27 trades) - Consistent

------------------------------
HOW TO USE
------------------------------

1. Wait for regime background to show clear trend (green = bullish, red = bearish)
2. For GHOST: Wait for "PB" label, then "GHOST" label on breakout
3. For REAPER: Wait for "REAPER" label at band extremes
4. Check info panel: ADX > 20, MTF aligned, reasonable volume
5. Manage risk: Use ATR-based stops (2x ATR recommended)

Pro Tips:
- GHOST longs outperform GHOST shorts historically
- REAPER is more consistent across all symbols
- Avoid signals during lunch (11:30 AM - 1:00 PM)
- Best results in first 90 minutes of session

------------------------------
RISK DISCLAIMER
------------------------------

This indicator is for educational purposes only. Past performance does not
guarantee future results. Always use proper risk management and never risk
more than you can afford to lose. Backtest results are hypothetical and
may not reflect actual trading performance.

================================================================================
ENHANCEMENTS FROM ORIGINAL VERSION
================================================================================

VERSION 3.7 CHANGELOG
---------------------

NEW: GHOST Quality Gate System
- Added ADX filter (>= 20) to ensure trend strength
- Added EMA spacing requirement (EMAs must be separated)
- Added RSI zone filter (healthy range, not oversold/overbought)
- Added volume confirmation on entry
- Added VWAP alignment requirement
- Added breakout confirmation (close > prior high)

NEW: Multi-Timeframe Alignment
- Daily timeframe trend check (weight: 1.5)
- 4-Hour timeframe trend check (weight: 1.0)
- 1-Hour timeframe trend check (weight: 0.5)
- 15-Minute timeframe trend check (weight: 0.25) - Entry zone confirmation
- Weighted scoring system with configurable threshold (max score: 3.25)

NEW: Pullback Detection System
- Automatic pullback identification at EMA 20
- Pullback quality assessment (candle direction + volume)
- Depth check (pullback not too deep past EMA 50)
- Setup expiry timer (20 minutes default)
- Cooldown between pullback signals

NEW: Anti-Overtrade Protection
- Daily signal limit (configurable, default 6)
- Signal cooldown between entries
- Prevents rapid-fire trading

NEW: Time-Based Filtering
- Open auction lockout (9:30-9:40 AM)
- Lunch window lockout (11:30 AM - 1:00 PM)
- MOC close lockout (3:50-4:00 PM)
- All configurable via inputs

NEW: Real-Time Info Panel
- Current regime display
- ADX reading with color coding
- RSI value
- Relative volume (vs 50-bar average)
- MTF alignment score
- Daily signal count

NEW: Comprehensive Alert System
- GHOST Long alert
- GHOST Short alert
- REAPER Long alert
- REAPER Short alert
- Pullback setup alert
- Combined signal alerts

IMPROVED: REAPER Module
- Volume confirmation (1.3x average required)
- ADX filter (>= 25 for reversals)
- Wick ratio validation
- Close-inside-band requirement
- Configurable band threshold (1sig or 2sig)

IMPROVED: Visual System
- Customizable colors for all signals
- Toggle for each visual element
- Professional label styling
- Background regime coloring

IMPROVED: Configuration
- All parameters exposed as inputs
- Logical grouping in settings panel
- Helpful tooltips on key settings
- Sensible defaults from backtesting

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.