Impulse MACD StrategyImpulse MACD Strategy
This strategy is built directly on the original "Impulse MACD " indicator.
Original author & script: **LazyBear** (published April 2015)
Link:
The core Impulse MACD logic — including SMMA on high/low, ZLEMA on HLC3, impulse zone filtering (md calculation), color coding, and signal/histogram — is reused from LazyBear's open-source code with full credit.
**Significant enhancements added in this version:**
- Converted to a full automated **strategy** with long/short entries
- Entries only on valid phase changes after prior extension > user threshold (pullback filter)
- Optional SuperTrend trend filter
- EMA-based exits + automatic break-even stop after N bars
- Entry labels and comprehensive performance stats table (trades, win rate, avg win/loss, net profit)
This adds substantial new logic, risk management, and usability beyond the original indicator.
Always backtest carefully — no guarantees of future performance. Use at your own risk.
Full credit and thanks to **LazyBear** for the innovative Impulse MACD concept that inspired this work.
Happy trading!
Aaron
Pine Script®策略






















