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 parts displayed on the chart
 Person Information: Buying and selling Strains & Sign Monitoring SystemThe system routinely attracts Entry, Cease Loss, and Take Revenue strains (TP 1–4) on the chart, tracks value motion for hits, data Win/Loss outcomes, and shows real-time efficiency statistics.
 Person Information : Visualization, Zone Fill, Sign Dashboard & Cancelled Alerts Once you connect an indicator to a chart, the system renders the next visible parts 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 instantly in your chart.
 Person Information : Chart Theme Person Information Chart Theme is a characteristic that adjustments your complete chart shade scheme in MetaTrader 5 — together with the background, candles, grid, textual content, and Bid/Ask strains — 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 development path (Uptrend, Downtrend, Ranging) by analyzing swing highs/lows, and detects key occasions: BOS (development continuation) and CHoCH (potential development 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 value path and gives instructed entry, cease loss, and take revenue ranges.
5SIGNAL FILTERSFilters that refine and validate buying and selling alerts
 Person Information: Commerce Course (Course Filter) within the Buying and selling SystemDefines the allowed buying and selling path (Purchase solely, Promote solely, each, or neither) as the primary filter earlier than looking for entry alerts, based mostly on present market development.
 Person Information: Sign Zone Filter within the Buying and selling SystemEliminates alerts not close to essential value zones, retaining solely these related to market constructions (swing excessive/low, BOS, CHoCH) to cut back noise.
 Person Information: StoplossHunt Filter Person Information — Filtering “SL Sweep” AlertsIdentifies higher-probability alerts by checking whether or not value “swept stoploss” earlier than forming a sample.
  Person Information : Excessive Zone Filter
Excessive Zone Filter is a sign filtering characteristic that helps keep away from coming into trades when value is on the high or backside of a Donchian value channel.
 Person Information: Reverse Sign Filter The Reverse Sign Filter is an computerized characteristic that stops new alerts from showing when you have already got an energetic commerce working in the wrong way.The precept may be very easy: Do not buy while you’re promoting. Do not promote while you’re shopping for.
 Person Information : High quality Filter Person Information High quality Filter is a characteristic that helps you obtain solely one of the best alerts — value patterns fashioned clearly, with balanced proportions and excessive reliability — and reject weak alerts, uninteresting patterns, and people beneath normal.
 6 TRADE MANAGEMENT 
 Person Information : Threat/Reward & SL Technique Person InformationThreat/Reward (R:R) is the ratio between the sum of money you settle for shedding (Threat) 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 mounted in a single place. You set SL at 1990.00, and it stays there perpetually — even when value has risen to 2030.00.Trailing Cease Loss (TSL) is totally different. It routinely strikes in your favor when value advances. As value strikes up, TSL strikes up with it. When value stalls or reverses, TSL holds one of the 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

PiercingLineTradingSystem 1.00

2-Bar Bullish Reversal Sample with Penetration-Depth Evaluation

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

What’s PiercingLineTradingSystem?

PiercingLineTradingSystem detects Piercing Line candlestick patterns in your MetaTrader 5 charts routinely. The indicator evaluates every accomplished bar pair towards six structural gates, scores surviving patterns throughout six weighted high quality components, and enters instantly on the shut of the sign candle when a sound Piercing Line is confirmed. Entry value, cease loss, and take revenue ranges are drawn instantly on the chart so you’ll be able to assess the commerce quite than carry out the calculations manually.


What Is a Piercing Line Sample?

A Piercing Line is a two-candle bullish reversal formation that seems after a downtrend. The primary candle is a Lengthy Black (bearish) candle that establishes a baseline. The second candle opens beneath the shut of the primary candle (a dislocation hole), then closes above the 50% midpoint of the primary candle’s physique however stays beneath the primary candle’s open, finishing the reversal sign.

The Piercing Line alerts renewed shopping for momentum after a promoting section. Moderately than instantly closing above the primary candle (which might create an Engulfing sample), the second candle’s partial penetration into the primary candle’s physique represents a measured restoration — consumers are stepping in however haven’t but overcome all sellers. This construction is extra widespread than full Engulfing and infrequently precedes continuation of the upward transfer.

Bulkowski’s analysis ranks the Piercing Line at 13 out of 103 candlestick patterns with a 64% reversal price. The Piercing Line is the bullish counterpart of the Darkish Cloud Cowl (bearish) sample.

Bullish Piercing Line

Seems after a downtrend. Bar 1 is a Lengthy Black candle (massive bearish physique). Bar 2 opens beneath close1 (dislocation), then closes above the 50% midpoint of bar 1’s physique, confirming that consumers have absorbed the promoting and begun pushing value greater. When this construction varieties after at the least two declining bars, the indicator classifies it as a Piercing Line.

Downtrend Context Detection

The indicator examines the three bars instantly earlier than bar 1 of the potential sample. If at the least two of these bars are declining (decrease closes), the sample is classed as a Piercing Line. If the context is ambiguous — fewer than two declining bars — the indicator defaults to detecting based mostly on whether or not the primary candle is bearish sufficient (Lengthy Black physique). The Bulkowski statistics (64% reversal price) are based mostly on downtrend context.


How the Indicator Finds Patterns

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

  1. Bar 1 Course gate: Bar 1 have to be bearish (shut < open). This establishes the downtrend setup.

  2. Bar 1 Lengthy Black gate: Bar 1’s physique should characterize at the least the minimal required physique/ATR a number of (Customary: 0.25×, Strict: 0.50×). This confirms that bar 1 is a big bearish candle, not a small doji.

  3. Bar 1 Physique Ratio gate: Bar 1’s physique should characterize at the least the minimal required fraction of complete vary (Customary: 50%, Strict: 65%). This confirms that the bearish transfer dominated the candle construction.

  4. Bar 2 Dislocation gate: Bar 2’s open should fall beneath bar 1’s shut by at the least the minimal dislocation quantity (Customary: 0.02× ATR, Strict: 0.05× ATR). This hole down opening alerts a continuation of promoting earlier than consumers step in.

  5. Bar 2 Penetration gate: Bar 2’s shut should exceed the 50% midpoint of bar 1’s physique (penetration > 0.50). This confirms that consumers have pushed again into bar 1’s vary, establishing the reversal construction.

  6. Bar 2 NOT Engulfing gate: Bar 2’s shut should stay beneath bar 1’s open (close2 < open1). If close2 >= open1, the sample is a Bullish Engulfing (a unique sample with greater conviction) quite than a Piercing Line.

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


High quality Rating — Evaluating Sample Energy

Each sample that clears detection receives a high quality rating between 0.00 and 1.00. Six components contribute to this rating, every weighted by its contribution to the Piercing Line’s reversal reliability.

High quality Elements

IssueWeightWhat It MeasuresCourse
QF-1: Penetration Depth0.35How deep bar 2 penetrates into bar 1’s physique — deeper is bestUltimate [0.50, 0.95]
QF-2: Physique/ATR0.25Bar 1’s physique dimension relative to latest volatility — bigger is bestUltimate [0.60, 2.50]
QF-3: Dislocation ATR0.20Measurement of the hole down opening (open2 – close1) / ATRUltimate [0.05, 0.40]
QF-4: Bar 1 Physique Ratio0.10Proportion of bar 1’s vary occupied by its physiqueUltimate [0.70, 1.00]
QF-5: Relative Physique0.05Bar 2’s physique in comparison with bar 1’s physiqueUltimate [0.70, 1.30]
QF-6: Course Modified0.05Affirmation that bar 2 reversed the path — all the time 1.0 for legitimate PRL[0.90, 1.00]

QF-1 (Penetration Depth) carries the best weight (0.35) as a result of the depth to which bar 2 penetrates bar 1’s physique is the core structural requirement of the Piercing Line — deeper penetration signifies stronger purchaser confidence and dedication.

Rating Grades

High quality Threshold

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


Entry Mode: Fast

Piercing Line patterns use rapid entry on the shut of bar 2 (the sign candle) quite than pending cease orders. When a sound Piercing Line is confirmed on bar shut, the system enters the commerce at that second quite than ready for a breakout above bar 1’s open.

This displays the character of the sample: bar 2’s shut above the 50% midpoint is the sign occasion. Ready for a breakout would delay entry past the affirmation level. Fast entry captures the transfer as outlined by the sample’s construction.

Buying and selling Ranges

Bullish Piercing Line:

The sample low is the minimal of bar 1’s low and bar 2’s low. The cease loss buffer of 0.25×ATR is positioned past this excessive. A break beneath the sample low invalidates the reversal premise.

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


What You See on the Chart

When a Piercing Line 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. Energetic: Fast entry positioned at bar 2 shut — commerce is dwell
  2. Goal Hit: Value reached a take revenue stage
  3. Cease Hit: Value reached the cease loss
  4. Cancelled: Sign invalidated earlier than shut

Settings You Can Modify

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 greater timeframes
Min Bars Between PatternsMinimal hole between two consecutive alerts5Enhance to 7-10 if alerts cluster; lower to three for extra
Detection PresetSwitches between Customary, Strict, and Customized modesPRESET_STANDARDUse Strict for higher-conviction setups
High quality Rating FilterAllows the standard filtertrueHold enabled for dwell buying and selling
Min High quality (0.0-1.0)Minimal high quality rating a sample should obtain to show0.30Elevate to 0.50+ for fewer however stronger alerts

Detection Preset Values

ParameterSTANDARDSTRICT
Min Physique/ATR (Bar 1)0.250.50
Min Physique Ratio (Bar 1)0.50 (50%)0.65 (65%)
Min Dislocation ATR0.020.05
Require Pattern Bars23

Customized Threshold Parameters

SettingWhat It DoesDefaultWhen to Change
[Custom] Min Physique/ATR (Bar 1)Minimal bar 1 physique dimension as a a number of of ATR0.25Enhance to 0.40+ to require bigger first candles
[Custom] Min Physique Ratio (Bar 1)Minimal bar 1 physique as a fraction of complete vary0.50Enhance to 0.60 for extra dominant bearish our bodies
[Custom] Min Dislocation ATRMinimal gap-down opening (open2 – close1) / ATR0.02Enhance to 0.03 to require bigger dislocations
[Custom] Require Pattern BarsMinimal prior declining bars to substantiate downtrend context2Enhance to three for stricter downtrend affirmation
SL Buffer (xATR past sample excessive)Offset positioned past the sample low0.25Enhance to 0.35 on unstable devices
Pattern SMA IntervalInterval for trend-related calculations if used20Enhance to 30 for longer-term development 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 beneficial 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), develop Indicators → Customized and find PiercingLineTradingSystem
  3. Drag the indicator onto the chart
  4. Within the settings dialog, choose Detection Preset (Customary beneficial 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 Piercing Line patterns
  6. Examine the standard rating on every sign — deal with patterns scoring 0.50 or greater when beginning out
  7. Non-compulsory: Allow alerts within the ALERTS part to obtain notifications when new patterns kind in real-time

All Options at a Look

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


Widespread Questions

Q: What’s the distinction between a Piercing Line and a Bullish Engulfing?

Each patterns characteristic bar 2 closing greater than bar 2 opened. In a Piercing Line, bar 2’s shut stays beneath bar 1’s open (close2 < open1), leaving a part of bar 1 unengulfed — this measured restoration suggests a gradual shift from sellers to consumers. In a Bullish Engulfing, bar 2 closes above bar 1’s open, utterly closing inside bar 1’s vary — this represents full purchaser dominance and sometimes carries greater conviction. The Piercing Line is extra widespread and has a 64% reversal price versus Engulfing’s sometimes greater price.

Q: Why does the indicator use rapid entry as an alternative of a Purchase Cease?

The Piercing Line’s defining characteristic is that bar 2 closes above the 50% midpoint of bar 1’s physique — the reversal sign happens at bar shut, not at a breakout stage above bar 1’s open. Ready for value to interrupt above bar 1’s open would delay entry nicely after the sign occasion. Fast entry at bar 2 shut captures the transfer as outlined by the sample’s construction and typical market conduct following the sample.

Q: Why is the penetration depth gate described as essential?

Penetration depth (how far bar 2 closes into bar 1’s physique) is the core structural requirement of the Piercing Line. It represents the conviction of the reversal: deeper penetration signifies that consumers have confidently pushed again into the sellers’ territory, establishing real reversal momentum. Patterns with deep penetration (near or above the 75% stage of bar 1’s physique) rating considerably greater as a result of they exhibit stronger purchaser dedication.

Q: What does “downtrend context” imply for the Piercing Line?

The indicator checks the three bars earlier than bar 1 of the potential sample. For a sample to be categorized as a Piercing Line, at the least two of these bars have to be declining (decrease closes). This ensures the sample varieties in an precise downtrend quite than throughout a consolidation. The Bulkowski statistics (64% reversal price) are based mostly on this downtrend context.

Q: What if each Bullish and Bearish alerts seem on the identical space?

If the Reverse Sign filter is enabled (InpOppositeFilter = true), the indicator prevents conflicting alerts from being registered concurrently. When a sign in the wrong way is already energetic, new alerts will both be blocked fully or proven as grey blocked arrows relying on the InpShowBlockedIndicator setting. For Piercing Line, this protects towards bearish patterns (Darkish Cloud Cowl) showing on the similar bar pair.

Q: How do I scale back the variety of alerts?

Elevate the Min High quality threshold to 0.50 or greater. You may also swap to the Strict preset (tighter physique and dislocation thresholds), allow the Course Filter to limit alerts to the dominant development path, or allow the Excessive Zone Filter to dam alerts close to overbought extremes.


What’s New — Model 1.00

That is the preliminary launch of PiercingLineTradingSystem. Key options embody:


Getting Assist

When you’ve got questions or want help:


Able to Begin?

PiercingLineTradingSystem identifies the structural second when consumers push again right into a downtrend by opening beneath the prior shut and shutting above the midpoint of that bearish candle. Connect the indicator to your chart, begin with the Customary preset on XAUUSD H1, and observe how the penetration depth aligns with the reversals you’d determine manually.

Blissful buying and selling!

Ich Khiem Nguyen


PiercingLineTradingSystem 1.00 — Created 2026-02-24

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles