HomeSample Page

Sample Page Title


PARTPartDescription
1INTRODUCTIONProduct introduction, what the product helps you with
   
2INSTALLATION & SETUPSystem necessities, step-by-step set up information
Information to Putting in Free Indicators and EAs Included with the Mirage Buying and selling System Buy
3INTERFACE DISPLAYRationalization of the elements displayed on the chart
 Person Information: Buying and selling Strains & Sign Monitoring SystemThe system routinely attracts Entry, Cease Loss, and Take Revenue traces (TP 1–4) on the chart, tracks worth motion for hits, data Win/Loss outcomes, and shows real-time efficiency statistics.
 Person Information : Visualization, Zone Fill, Sign Dashboard & Cancelled Alerts Whenever you connect an indicator to a chart, the system renders the next visible elements for every detected sign
Person Information: MTF SCAN & Dashboard Person Information MTF SCAN routinely scans all Market Watch symbols throughout 8 timeframes (M1 to W1) and shows outcomes on a Dashboard grid straight in your chart.
 Person Information : Chart Theme Person Information Chart Theme is a function that modifications your complete chart coloration scheme in MetaTrader 5 — together with the background, candles, grid, textual content, and Bid/Ask traces — with a single click on.
4CORE CONCEPTSElementary ideas that the system is constructed upon
 Person Information: Market Construction Performance within the Buying and selling SystemIdentifies pattern route (Uptrend, Downtrend, Ranging) by analyzing swing highs/lows, and detects key occasions: BOS (pattern continuation) and CHoCH (potential pattern reversal).
Person Information : Sign Sorts, States, and Lifecycle A sign is the system’s notification when it detects a qualifying candlestick sample on the chart. Every sign tells you the anticipated worth route and supplies instructed entry, cease loss, and take revenue ranges.
5SIGNAL FILTERSFilters that refine and validate buying and selling alerts
 Person Information: Commerce Route (Route Filter) within the Buying and selling SystemDefines the allowed buying and selling route (Purchase solely, Promote solely, each, or neither) as the primary filter earlier than looking for entry alerts, based mostly on present market pattern.
 Person Information: Sign Zone Filter within the Buying and selling SystemEliminates alerts not close to necessary worth zones, retaining solely these linked to market constructions (swing excessive/low, BOS, CHoCH) to scale back noise.
 Person Information: StoplossHunt Filter Person Information — Filtering “SL Sweep” AlertsIdentifies higher-probability alerts by checking whether or not worth “swept stoploss” earlier than forming a sample.
  Person Information : Excessive Zone Filter
Excessive Zone Filter is a sign filtering function that helps keep away from getting into trades when worth is on the high or backside of a Donchian worth channel.
 Person Information: Reverse Sign Filter The Reverse Sign Filter is an automated function that forestalls new alerts from showing when you have already got an energetic commerce working in the wrong way.The precept could be very easy: Do not buy once you’re promoting. Do not promote once you’re shopping for.
 Person Information : High quality Filter Person Information High quality Filter is a function that helps you obtain solely the very best alerts — worth patterns shaped clearly, with balanced proportions and excessive reliability — and reject weak alerts, boring patterns, and people under customary.
 6 TRADE MANAGEMENT 
 Person Information : Danger/Reward & SL Methodology Person InformationDanger/Reward (R:R) is the ratio between the sum of money you settle for shedding (Danger) and the sum of money you count on to realize (Reward) in a single commerce.
 Person Information: Trailing Cease Loss (TSL) Person InformationCommon Cease Loss (SL) stays fastened in a single place. You set SL at 1990.00, and it stays there endlessly — even when worth has risen to 2030.00.Trailing Cease Loss (TSL) is totally different. It routinely strikes in your favor when worth advances. As worth strikes up, TSL strikes up with it. When worth stalls or reverses, TSL holds the very best place it reached.
7CONFIGURATION PARAMETERS GUIDEDetailed information to every configuration parameter
  SIGNAL SCANNING CONFIGURATION GUIDE – MIRAGE TRADING SYSTEM EA Information to mastering sign scanning settings throughout the Inputs tab, optimizing commerce discovery on a single chart or throughout your complete market.
 8 ALERTS & NOTIFICATIONS 
  Person Information: Alerts & Notifications Person Information Configure push notifications, and on-screen popups when new alerts are detected.
 9SYSTEM RISKS & LIMITATIONS Notes on system dangers and limitations

1. INTRODUCTION

OutsideBarTradingSystem 1.00

2-Bar Continuation Sample with Vary-Engulfment Evaluation

Creator: Ich Khiem Nguyen | MQL5: https://www.mql5.com/en/customers/khiemni/vendor

OutsideBarTradingSystem detects Exterior Bar candlestick patterns in your MetaTrader 5 charts routinely. The indicator evaluates every accomplished bar pair towards 4 structural gates, scores surviving patterns throughout six weighted high quality elements, and locations pending purchase cease or promote cease orders on the breakout stage when a legitimate Exterior Bar is confirmed. Entry worth, cease loss, and take revenue ranges are drawn straight on the chart so you’ll be able to assess the commerce alternative somewhat than carry out the calculations manually.


What Is an Exterior Bar Sample?

An Exterior Bar is a two-candle continuation formation the place the second candle’s vary utterly encompasses the primary candle’s vary. The second candle’s excessive exceeds the primary candle’s excessive, and the second candle’s low falls under the primary candle’s low. This vary growth alerts renewed volatility and directional dedication within the route of the sample’s context (uptrend for bullish Exterior Bar, downtrend for bearish Exterior Bar).

The Exterior Bar represents worth vary growth after consolidation. Relatively than instantly closing throughout the first candle’s vary (which might point out indecision like an Inside Bar), the second candle’s vary growth establishes that consumers or sellers have seized management and pushed worth to new extremes. This construction typically precedes continued motion within the established pattern route.

Bulkowski’s analysis ranks the Exterior Bar at place 2 amongst continuation patterns, with a 58% win charge in bull markets when the breakout is upward. The Exterior Bar is a reversal of the Inside Bar sample — the place Inside Bar represents consolidation, Exterior Bar represents growth and momentum dedication.

Bullish Exterior Bar

Seems throughout an uptrend or after a consolidation breakout above a resistance stage. Bar 1 is any candle (massive or small). Bar 2 engulfs bar 1’s total vary: HIGH_2 > HIGH_1 AND LOW_2 < LOW_1. Each bars sometimes shut increased (bullish physique coloration), confirming that consumers keep management. Entry is a pending purchase cease order positioned barely above bar 2’s excessive (HIGH_2 + 0.05×ATR), triggering if worth breaks above the engulfing candle.

Bearish Exterior Bar

Seems throughout a downtrend or after a consolidation breakdown under a assist stage. Bar 2 engulfs bar 1’s total vary. Each bars sometimes shut decrease (bearish physique coloration), confirming that sellers keep management. Entry is a pending promote cease order positioned barely under bar 2’s low (LOW_2 – 0.05×ATR), triggering if worth breaks under the engulfing candle.

Uptrend Context Detection

The indicator checks the pattern previous to the sample formation. If the prior bars present increased lows and better highs, the sample is classed as a bullish Exterior Bar continuation. The context detection examines the three bars earlier than bar 1 to find out pattern route alignment.


How the Indicator Finds Patterns

The indicator evaluates every potential two-bar sample towards 4 sequential gates. All 4 should cross for a sign to be generated.

  1. Vary Engulfment gate: Bar 2’s excessive should exceed bar 1’s excessive, and bar 2’s low should fall under bar 1’s low (HIGH_2 > HIGH_1 AND LOW_2 < LOW_1). This confirms the vary growth that defines the Exterior Bar construction.

  2. Bar 2 Vary Dimension gate: Bar 2’s complete vary should signify at the least the minimal required vary/ATR a number of (Customary: 0.50×ATR, Strict: 0.60×ATR). This confirms that bar 2 is a major range-expanding candle, not a small engulfing spike.

  3. Bar 2 Physique Dimension gate: Bar 2’s physique should signify at the least the minimal required physique/ATR a number of (Customary: 0.20×ATR, Strict: 0.25×ATR). This ensures the candle has significant construction past simply wicks, lowering whipsaw danger on pure spike patterns.

  4. High quality gates: Bar 2’s relative vary (bar 2 vary / bar 1 vary) should exceed the minimal threshold (Customary: 1.20×, Strict: 1.30×), and physique ratio should be enough (Customary: 0.40, Strict: 0.45). These gates affirm that the engulfment is significant and the candle isn’t just marginally bigger.

Solely candles passing all 4 gates proceed to high quality scoring and sign registration.


High quality Rating — Evaluating Sample Power

Each sample that clears detection receives a top quality rating between 0.00 and 1.00. Six elements contribute to this rating, every weighted by its contribution to the Exterior Bar’s continuation reliability.

High quality Components

IssueWeightWhat It MeasuresRoute
QF-1: Vary/ATR0.20Bar 2’s vary measurement relative to current volatility — bigger is bestSupreme [0.50, 2.00]
QF-2: Relative Vary0.20Bar 2’s vary in comparison with bar 1’s vary — better growth is bestSupreme [1.20, 2.50]
QF-3: CLV (Shut Location Worth)0.20For bullish, shut close to the excessive; for bearish, shut close to the lowSupreme [0.75, 1.00]
QF-4: Physique Ratio0.15Proportion of bar 2’s vary occupied by its physiqueSupreme [0.40, 1.00]
QF-5: Development Alignment0.15Affirmation that bar 2’s route matches the prior patternSupreme [0.80, 1.00]
QF-6: Physique Coloration0.10Purity of bar 2’s coloration — bullish bar 2 or bearish bar 2[0.90, 1.00]

QF-1 and QF-2 carry equal weight (0.20 every) as a result of each contribute to the core structural requirement: vary growth. Vary/ATR measures absolute volatility growth; Relative Vary measures growth relative to the instantly previous candle.

Rating Grades

High quality Threshold

The default minimal high quality is 0.30. Adjusting this threshold modifications which patterns seem on the chart:


Entry Mode: Pending

Exterior Bar patterns use pending purchase cease or promote cease orders positioned on the breakout stage somewhat than quick entry at bar shut. When a legitimate Exterior Bar is confirmed, the system creates a pending order at HIGH_2 + 0.05×ATR (bullish) or LOW_2 – 0.05×ATR (bearish). The order prompts provided that worth breaks above (bullish) or under (bearish) that stage, capturing the breakout transfer.

This displays the character of the sample: bar 2’s vary engulfment establishes growth potential, however the precise directional dedication happens at breakout. Ready for the breakout ensures entry aligns with market consensus somewhat than getting into speculatively at bar shut.

Buying and selling Ranges

Bullish Exterior Bar:

Bearish Exterior Bar:

The sample low/excessive is the minimal/most of bar 1 and bar 2. The cease loss buffer of 0.25×ATR is positioned past this excessive. A break past the sample excessive invalidates the continuation premise.

Take revenue ranges are calculated from entry utilizing configurable risk-reward multiples (default: 1R, 2R, 3R, 4R from entry to cease distance).


What You See on the Chart

When an Exterior Bar sample passes all detection gates and high quality filters, the indicator attracts the next:

Sign Markers

Buying and selling Strains

Visible Zones

Sign Lifecycle

  1. Pending: Pending purchase cease or promote cease order is positioned at breakout stage — ready for worth to interrupt above/under
  2. Energetic: Breakout triggered, commerce entry occurred, commerce is reside
  3. Goal Hit: Value reached a take revenue stage
  4. Cease Hit: Value reached the cease loss

Settings You Can Alter

Detection Parameters

SettingWhat It DoesDefaultWhen to Change
ATR Interval for volatilityBars used to calculate ATR, normalizing all range-based thresholds to present volatility14Enhance to twenty+ for smoother ATR on noisy markets
Max Bars to Scan (historical past depth)Historic bars scanned on first load to show previous patterns3000Enhance for extra historical past on increased timeframes
Min Bars Between PatternsMinimal hole between two consecutive alerts3Enhance to five+ if alerts cluster; lower to 2 for extra
Detection PresetSwitches between Customary, Strict, and Customized modesPRESET_STANDARDUse Strict for higher-conviction setups
High quality Rating FilterPermits the standard filtertrueMaintain enabled for reside buying and selling
Min High quality (0.0-1.0)Minimal high quality rating a sample should obtain to show0.30Increase to 0.50+ for fewer however stronger alerts

Detection Preset Values

ParameterSTANDARDSTRICT
Min Vary/ATR (Bar 2)0.500.60
Min Physique/ATR (Bar 2)0.200.25
Min Relative Vary1.201.30
Min Physique Ratio0.400.45

Customized Threshold Parameters

SettingWhat It DoesDefaultWhen to Change
[Custom] Min Vary/ATR (Bar 2)Minimal bar 2 vary measurement as a a number of of ATR0.50Enhance to 0.65+ to require bigger vary growth
[Custom] Min Physique/ATR (Bar 2)Minimal bar 2 physique measurement as a a number of of ATR0.20Enhance to 0.30+ to require extra substantial physique construction
[Custom] Min Relative VaryMinimal bar 2 vary as a a number of of bar 1 vary1.20Enhance to 1.50 for extra dramatic vary growth
[Custom] Min Physique RatioMinimal bar 2 physique as a fraction of complete vary0.40Enhance to 0.50 for cleaner candle construction
SL Buffer (xATR past sample excessive)Offset positioned past the sample excessive/low0.25Enhance to 0.35 on unstable devices
Development SMA IntervalInterval for trend-related calculations if used20Enhance to 30 for longer-term pattern context

Settings Suggestions


Greatest Timeframes and Markets

Greatest Markets

The indicator works on any image and timeframe. H1 with the Customary preset on XAUUSD is the really useful beginning configuration.


Getting Began — Fast Setup

  1. Open MetaTrader 5 and cargo a chart (XAUUSD on H1 is an effective start line)
  2. Within the Navigator panel (Ctrl+N), broaden Indicators → Customized and find OutsideBarTradingSystem
  3. Drag the indicator onto the chart
  4. Within the settings dialog, choose Detection Preset (Customary really useful for first use) and click on OK — the indicator will scan historical past and show detected patterns instantly
  5. Observe the alerts: inexperienced upward arrows point out bullish Exterior Bar patterns; crimson downward arrows point out bearish patterns
  6. Examine the standard rating on every sign — concentrate on patterns scoring 0.50 or increased when beginning out
  7. Elective: Allow alerts within the ALERTS part to obtain notifications when new patterns type in real-time

All Options at a Look

For detailed guides on every function, see the MANUAL included with the indicator.


Widespread Questions

Q: What’s the distinction between Exterior Bar and Inside Bar?

Inside Bar represents consolidation and indecision: bar 2’s vary is totally contained inside bar 1’s vary (HIGH_2 <= HIGH_1 and LOW_2 >= LOW_1). Exterior Bar represents growth and dedication: bar 2’s vary utterly incorporates bar 1’s vary (HIGH_2 > HIGH_1 and LOW_2 < LOW_1). Inside Bar typically precedes a breakout; Exterior Bar typically confirms a breakout has begun.

Q: Why does the indicator use pending orders as an alternative of quick entry?

The Exterior Bar’s defining function is that bar 2’s vary expands past bar 1’s extremes — the growth sign happens at bar shut, however the precise directional dedication and affirmation of continuation happens when worth breaks above (bullish) or under (bearish) that vary. Ready for the breakout ensures entry aligns with market consensus that the growth is significant somewhat than getting into speculatively at bar shut.

Q: How do I distinguish bullish from bearish Exterior Bars?

Bullish Exterior Bars sometimes happen throughout uptrends with each bars closing increased (bullish physique coloration) and are entered with purchase cease orders above the excessive. Bearish Exterior Bars sometimes happen throughout downtrends with each bars closing decrease (bearish physique coloration) and are entered with promote cease orders under the low. The indicator’s route filter and pattern evaluation detect this context routinely.

Q: What does “pattern alignment” imply for Exterior Bar?

The indicator checks the three bars earlier than bar 1 of the potential sample to ascertain whether or not an uptrend or downtrend is in place. If bars are making increased highs and better lows, an uptrend is established; if making decrease highs and decrease lows, a downtrend is established. Bullish Exterior Bars rating increased when forming throughout confirmed uptrends; bearish Exterior Bars rating increased throughout downtrends. This context detection aligns alerts with the continuation premise.

Q: Why does the indicator place breakout orders above the excessive as an alternative of precisely on the excessive?

Purchase cease orders are sometimes positioned barely above (sometimes HIGH_2 + 0.05×ATR) to make sure the order triggers cleanly on true breakout momentum somewhat than on minor wicks or bid/ask unfold noise on the precise excessive. This buffer improves entry high quality by requiring barely extra conviction earlier than triggering.

Q: What if a number of patterns type shut collectively?

If a number of Exterior Bar patterns type on close by bars, the spacing filter prevents them from all showing as alerts. The Min Bars Between Patterns setting (default: 3 bars) ensures that solely the highest-quality sign is proven when patterns cluster. Alter this setting for those who favor to see all patterns no matter spacing.


What’s New — Model 1.00

That is the preliminary launch of OutsideBarTradingSystem. Key options embrace:


Getting Assist

In case you have questions or want assist:


Able to Begin?

OutsideBarTradingSystem identifies the structural second when worth vary expands past the prior bar’s extremes, signaling renewed volatility and directional dedication. Connect the indicator to your chart, begin with the Customary preset on XAUUSD H1, and observe how the vary growth aligns with the momentum strikes you’ll establish manually.

Blissful buying and selling!

Ich Khiem Nguyen


OutsideBarTradingSystem 1.00 — Created 2026-02-24

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles