PROTECTED SOURCE SCRIPT

Gaussian MACD RSI v2

47
Gaussian Filter MACD Strategy (Zero Cross + RSI Gate)

What it does
This strategy evaluates momentum using a Gaussian-smoothed MACD and requires a MACD zero-line cross to confirm trend initiation. A configurable RSI threshold filters weak signals, aiming to reduce whipsaws around the zero line. Entries occur only when momentum and baseline strength agree; exits are triggered by MACD crossing below its signal to capture the meat of the move while avoiding discretionary overrides.

How it works (concepts, not code)

Gaussian MACD: The fast/slow components are smoothed with a Gaussian-style filter to reduce noise relative to standard EMA MACD.

Zero-line confirmation: Longs require MACD to cross above zero, aligning entries with positive momentum regimes.

RSI gate: A threshold (default 50) further filters entries so that only setups with baseline strength qualify.

Exit logic: Positions close when MACD crosses below its signal line, providing an objective exit without trailing logic.

Sources: The script supports standard and Heikin-Ashi-derived sources for traders who prefer alternate preprocessing.

How to use it

Add the strategy to a clean chart.

Keep default settings for initial testing; then adjust the RSI threshold and symbol/timeframe for your market.

Favor liquid instruments where slippage and fills are reliable.

Forward-test and walk-forward before any live use.

Default Properties (used for this publication)

Initial Capital: $25,000

Order Size: 100% of equity per trade (no leverage).

Commission: 0.02% per side.

Slippage: 2 ticks (or 0.02% on percent-based markets).

Timeframe used for the published chart: 15-minute (example)

Dataset: SPY/QQQ/large-cap equities (2+ years) producing 100+ trades in sample.

Note: This strategy does not use hard stops by default. If you prefer risk caps ≤ 5–10% per trade, add a stop in the Inputs and re-publish; otherwise, this description explains the deviation per House Rules.

Disclosures
Backtest results are estimates; real-world fills, slippage, and availability may differ. No guarantee of performance. Use prudent position sizing and independent verification.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.