MT4 Inside & Outside Bar Indicator (Scanner)

inside outside bar mt4 indicator
MT4 Inside & Outside Bar Indicator automatically detects Inside Bar and Outside Bar (Engulfing) price patterns across all specified assets and timeframes. Detected patterns are displayed on the chart and in a structured scanner dashboard with configurable alerts and one-click chart navigation.

MT4 Inside & Outside Bar Indicator (Scanner)

The Inside & Outside Bar Indicator automatically identifies two specific price bar patterns — Inside Bar and Outside Bar — and displays them across all monitored assets and timeframes through a structured dashboard.

Inside Bar is a bar whose high-low range falls completely within the high-low range of the preceding bar. This means the current bar represents a narrower price range than the one before it — a structural condition typically associated with consolidation or reduced directional pressure following a prior move.

Outside Bar (Engulfing Bar) is a bar whose high-low range completely contains the high-low range of the preceding bar. The current bar extends beyond both the high and low of the prior bar — a structural condition typically associated with a directional expansion following a period of consolidation.

Both patterns are most reliably identified on timeframes from M30 and above. On lower timeframes, short-term price noise increases the frequency of pattern formation without the structural context that gives these patterns analytical weight.

 

How to interpret and use the Inside & Outside Bar Indicator?

The indicator registers a condition when it detects a qualifying Inside or Outside Bar. The directional context of the registered condition is determined by the character of the pattern bar itself — not by a subsequent price move.

When the pattern bar is bullish (close above open), a bullish condition is registered — labeled IBU (Inside Bar Up) or OBU (Outside Bar Up) depending on pattern type.

When the pattern bar is bearish (close below open), a bearish condition is registered — labeled IBD (Inside Bar Down) or OBD (Outside Bar Down).

Each registered condition is displayed on the chart with three visual elements: a directional marker arrow, a vertical label showing the pattern abbreviation, and a dotted rectangle highlighting the bars that form the pattern.

Arrow thickness indicates pattern type — thin arrows correspond to Outside Bar conditions, thick arrows correspond to Inside Bar conditions. This allows both pattern types to be distinguished at a glance when both are enabled simultaneously.

Timeframe context: Inside and Outside Bar patterns reflect structural relationships between adjacent bars. On timeframes below M30, the frequency of these formations increases significantly due to short-term price noise — reducing the analytical context of each individual pattern. The indicator remains functional on all timeframes, but the structural significance of detected patterns is generally considered higher on M30 and above.

 

Multi-asset monitoring: how to use the Inside & Outside dashboard?

The dashboard displays the current detection status across all monitored assets and timeframes in a single structured view.

Each cell shows the pattern type detected (Inside or Outside Bar), the directional context of the registered condition (bullish or bearish), and the number of bars back at which the pattern was detected. Green cells indicate a bullish condition, red cells a bearish one. Color saturation decreases as the condition becomes less recent. Clicking any cell updates the chart to the corresponding asset and timeframe directly.

MT4 Inside & Outside Bar Indicator input parameters

The indicator has the following parameters:

Assets — instruments to include in the scanner.

Enable_M1–MN — include or exclude individual timeframes from the scanner scope.

Max_bars — limits how far back the scanner evaluates conditions. Reducing this value improves calculation speed.

Enable alert / Enable email / Enable mobile — alert delivery: platform notifications, email, or mobile — each configurable independently.

Enable_inside_bar — enables or disables Inside Bar detection.

Enable_outside_bar — enables or disables Outside Bar detection.

Enable_inside_bar_alert — enables or disables alerts specifically for Inside Bar conditions.

Enable_outside_bar_alert — enables or disables alerts specifically for Outside Bar conditions.

 

Indicator Limitations

Inside Bar and Outside Bar patterns are identified based on the structural relationship between adjacent price bars. The indicator detects formations that meet the defined geometric criteria — it does not predict the direction or magnitude of subsequent price movement. Pattern frequency increases on lower timeframes due to noise, reducing the structural context of individual detections. All registered conditions should be evaluated within a broader analytical framework that considers overall market structure and context.

 

Custom Programming

mt4 custom programming

We can customize this indicator to your requirements by adding new features, modifying calculation logic, or combining multiple tools into a unified solution.

We also develop automated trading strategies (Expert Advisors) based on custom logic. The system can include configurable management modules such as dynamic risk parameters, multi-stage trailing stops, additional confirmation filters, and other custom functionality based on your specifications.

The final solution is delivered with full source code and post-delivery support. Contact us for a free consultation to discuss the scope and timeline of your project.

 

We Value Your Feedback

We are committed to the ongoing development and refinement of our indicators. If you’ve spotted a bug, feel that something essential is missing, or have ideas that could make the indicator even better, just send us a message. Your feedback helps us improve and deliver tools that truly meet traders’ needs.

See other indicators on a single subscription
MT4 Candlestick Patterns Indicator (Scanner)
MT4 News Indicator (Dashboard)
MT4 TTM Squeeze Indicator (Scanner)