
What is the Outside Bar Reversal Strategy with EMA Filter Indicator?

The Outside Bar Reversal Strategy with EMA Filter is a powerful TradingView indicator designed to improve trading precision by combining price action patterns with trend-based filters. Developed using Pine Script, this tool works by filtering signals from popular indicators like Supertrend or MACD, ensuring that trades align with the prevailing market trend.

The indicator identifies outside bar reversal patterns—candles where the current high and low exceed the previous candle’s range—and overlays additional filters like the 200 EMA or MACD histogram to refine buy and sell signals. This makes it ideal for traders seeking to enhance their trading strategies with clear, trend-aligned signals.
How Does Outside Bar Reversal Strategy with EMA Filter Indicator Work on TradingView?

This TradingView indicator utilizes Pine Script to detect specific price action setups and apply trend filters for better signal quality. Let’s break down its functionality:
1. Core Price Action Signal: Outside Bar Reversals
- Outside Bar Definition: An outside bar occurs when the current candle’s high and low exceed the high and low of the previous candle. This pattern often signals a potential reversal or strong continuation.
- Signal Generation:
- Buy Signal: Triggered when an outside bar forms in an uptrend (based on EMA or MACD filter).
- Sell Signal: Triggered when an outside bar forms in a downtrend.
2. EMA Filter
- 200 EMA as a Trend Filter:
- When the price is above the 200 EMA, the indicator only considers buy signals, reflecting bullish market sentiment.
- When the price is below the 200 EMA, only sell signals are shown, aligning with bearish trends.
- Why the 200 EMA? It’s a widely used benchmark to identify long-term trends and is especially effective in filtering out trades against the dominant market direction.
3. MACD Histogram Filter
- The MACD histogram adds another layer of precision:
- Buy Signal: Only when the MACD histogram is green, indicating bullish momentum.
- Sell Signal: Only when the MACD histogram is red, signaling bearish momentum.
- This filter helps traders avoid entering trades during periods of weak or conflicting market conditions.
4. Supertrend Integration
- The Supertrend indicator provides initial buy or sell signals:
- Buy Signal: Triggered by the Supertrend when combined with a positive EMA or MACD filter.
- Sell Signal: Triggered by the Supertrend when paired with negative EMA or MACD conditions.
Benefits of Using This Indicator on TradingView
- Enhanced Signal Accuracy
By combining price action patterns with robust filters like the EMA or MACD, this indicator minimizes false signals and ensures that trades align with the overall market trend. - Customizable Filters
The flexibility to switch between filters (e.g., EMA, MACD) allows traders to tailor the indicator to their preferred strategy or market conditions. - Multi-Market Applicability
Whether you trade stocks, forex, or crypto, the Outside Bar Reversal Strategy works seamlessly across markets, adapting to different trading styles. - User-Friendly Interface
Designed for TradingView, this indicator provides clear visual signals, making it easy for traders to interpret and act on. - Optimized for Trend Trading
With the EMA and MACD filters, traders can stay on the right side of the trend, avoiding unnecessary losses from counter-trend trades.
How to Use the Indicator on TradingView
- Add the Indicator
- Open TradingView and navigate to the “Indicators” section.
- Search for the “Outside Bar Reversal Strategy with EMA Filter” or load your custom Pine Script.
- Customize Your Filters
- Choose between 200 EMA or MACD Histogram as your primary filter.
- Adjust parameters like EMA length or MACD settings to suit your trading style.
- Interpret Buy and Sell Signals
- Buy Signals: Look for green Supertrend or MACD signals above the 200 EMA, paired with outside bar patterns.
- Sell Signals: Focus on red Supertrend or MACD signals below the 200 EMA, with matching outside bar formations.
- Combine with Risk Management
- Always set stop-loss levels based on recent support/resistance or ATR (Average True Range).
- Use proper position sizing to manage risk effectively.
- Backtest Before Trading
- Use TradingView’s built-in backtesting feature to evaluate the indicator’s performance on historical data.
- Adjust the settings to optimize results for your preferred asset or timeframe.
Why Use Pine Script for Custom Indicators?

Pine Script is the scripting language behind TradingView, enabling traders to build and customize their own indicators and strategies. This indicator leverages Pine Script’s capabilities to deliver a dynamic, multi-filter tool that integrates seamlessly with TradingView’s robust charting platform.
Key benefits of Pine Script include:
- Simplicity: Easy-to-learn syntax for creating complex indicators.
- Performance: Efficient execution of scripts, even on large datasets.
- Customization: Full control over indicator parameters and logic.
Final Thoughts
The Outside Bar Reversal Strategy with EMA Filter is a must-have TradingView indicator for traders looking to enhance their strategies with precise, trend-aligned signals. By combining price action patterns with filters like the 200 EMA and MACD histogram, this tool ensures that trades are backed by strong market conditions.
Whether you’re a beginner or an experienced trader, leveraging this indicator can improve your trading decisions, minimize risk, and increase profitability. Start using it today on TradingView and take your trading game to the next level!
Pinescript of Outside Bar Reversal Strategy with EMA Filter Indicator

Get in touch at +91 7620658346 to access this indicator. We specialize in custom algorithm development for TradingView, MT4/MT5, and trading bots.
Follow @algo_aakash on Instagram, YouTube, and Twitter for updates.
Disclaimer
The information provided in this article and any related indicators is for educational purposes only. Trading in financial markets involves significant risk, and there is no guarantee of profit.Outside Bar Reversal Strategy with EMA Filter Indicator, which may not accurately forecast future market movements. Users should conduct their own research, evaluate their risk tolerance, and seek guidance from a licensed financial advisor before making any trading decisions. The author and developer of this indicator are not responsible for any losses incurred through its use. Please trade responsibly.
Access the indicator by clicking here.

1 Comment
Manisha baban kamble · December 24, 2024 at 8:17 am
Very good indicator