OPEN-SOURCE SCRIPT
Combo 2/20 EMA & Bandpass Filter by Tamarok

Description:
This strategy combines a 2/20 exponential moving average (EMA) crossover with a custom bandpass filter to generate buy and sell signals.
Use the Fast EMA and Slow EMA inputs to adjust trend sensitivity, and the Bandpass Filter Length, Delta, and Zones to fine-tune momentum turns.
Signals occur when both EMA and BPF agree in direction, with optional reversal and time filters.
How to use:
1. Add the script to your chart in TradingView.
2. Adjust the EMA and BP Filter parameters to match your asset’s volatility.
3. Enable ‘Reverse Signals’ to trade counter-trend, or use the time filter to limit sessions.
4. Set alerts on Long Alert and Short Alert for automated notifications.
Inspiration:
Based on HPotter’s original combo strategy (Stocks & Commodities Mar 2010).
Updated to Pine Script v6 with streamlined code and alerts.
WARNING:
For purpose educate only
This strategy combines a 2/20 exponential moving average (EMA) crossover with a custom bandpass filter to generate buy and sell signals.
Use the Fast EMA and Slow EMA inputs to adjust trend sensitivity, and the Bandpass Filter Length, Delta, and Zones to fine-tune momentum turns.
Signals occur when both EMA and BPF agree in direction, with optional reversal and time filters.
How to use:
1. Add the script to your chart in TradingView.
2. Adjust the EMA and BP Filter parameters to match your asset’s volatility.
3. Enable ‘Reverse Signals’ to trade counter-trend, or use the time filter to limit sessions.
4. Set alerts on Long Alert and Short Alert for automated notifications.
Inspiration:
Based on HPotter’s original combo strategy (Stocks & Commodities Mar 2010).
Updated to Pine Script v6 with streamlined code and alerts.
WARNING:
For purpose educate only
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.