Counter attack Trading System
- Göstergeler
- Ich Khiem Nguyen
- Sürüm: 1.0
- Etkinleştirmeler: 10
Identifies 2-bar counterattack line formations by detecting a gap opening against the prevailing trend followed by a close that matches the prior candle's close. This gap-then-match structure signals that the opposing side has mounted a full counterattack, absorbing all trend momentum in a single bar. Each signal is evaluated by 6 weighted quality factors including gap magnitude, close-match precision, and candle significance.
This indicator detects Counterattack Line formations on any symbol and timeframe, draws automated Entry/SL/TP trading levels, and tracks signal performance in real-time. Includes a multi-timeframe scanner monitoring up to 150 symbols across 8 timeframes simultaneously.
Introductory Pricing: This indicator is offered at introductory pricing that increases based on sales milestones. The current price is $49. After 10 sales, the price increases to $59. After 30 sales, it increases to $69. After 60 sales, the final price of $79 takes effect. All buyers receive the same full-featured indicator regardless of purchase price
Included Tools
Each Counterattack Trading System purchase includes access to the following companion tools at no additional cost:
-
Smart Trend Consensus MT5 — Multi-timeframe trend agreement indicator. Displays trend direction across up to 7 timeframes on a single dashboard. Helps filter counterattack signals by confirming whether the gap reversal aligns with higher-timeframe structure. https://www.mql5.com/en/market/product/160553
-
Price Volume Distribution MT5 — Volume profile and price distribution analysis. Identifies high-volume price zones where institutional orders cluster. Useful for confirming whether the close-match level coincides with a high-volume node. https://www.mql5.com/en/market/product/160452
-
Counterattack Trading System EA — Automated signal execution based on indicator output buffers. Reads Entry/SL/TP levels from the indicator and places pending orders automatically. Configurable lot sizing, risk per trade, and session filters. (Delivered via MQL5 private message after purchase confirmation.)
Contact the author through MQL5 messaging after purchase to receive access to the companion tools.
How Counterattack Line Detection Works
The indicator scans for a 2-candle gap reversal structure:
-
Setup Candle (Bar 1) — A candle continuing the existing trend. For bullish counterattack: a bearish candle pushing lower. For bearish counterattack: a bullish candle pushing higher.
-
Gap Opening — The second candle opens with a measurable gap against the prior trend direction. Bullish: open gaps below the setup candle's close. Bearish: open gaps above the setup candle's close. The gap must be at least 0.15-0.50x ATR to confirm genuine dislocation.
-
Close Matching — The second candle closes at approximately the same level as the first candle's close (within 0.15x ATR tolerance). This convergence demonstrates that the counterattacking side has fully neutralized the trend's progress.
-
Body Validation — Both candles must have meaningful bodies (at least 0.30x ATR each), confirming genuine conviction rather than indecision. At least one candle must have significant range (0.60x ATR).
Entry is placed as a pending order (Buy Stop / Sell Stop) beyond the pattern extreme plus an ATR buffer. Stop Loss is set at the opposite pattern extreme or via Donchian Channel.
6-Factor Quality Scoring evaluates:
- Gap size: larger gaps indicate stronger dislocation (weight 20%)
- Direction change: confirms opposing candle bodies (weight 20%)
- Close match precision: tighter convergence scores higher (weight 25%)
- Relative body size: balanced body sizes between candles (weight 15%)
- Doji check: penalizes indecisive candles (weight 10%)
- Range significance: meaningful candle range relative to ATR (weight 10%)
Pattern-Specific Settings:
- Min Gap (xATR, 0.20=20% of ATR)
- Close Match Tolerance (xATR, 0.15=15%)
- Min Body/ATR (both candles, 0.30)
- Min Range/ATR (at least 1 bar, 0.60)
- Require Trend Bars Before (0=disable)
- SL Buffer (xATR beyond pattern extreme)
- Entry Buffer (xATR for pending order)
Automated Trading Levels
Every detected pattern automatically draws Entry, Stop Loss, and up to 4 Take Profit levels (TP1-TP4) based on configurable Risk:Reward ratios. Price labels display pip distance and R:R ratio for each level.
Stop Loss methods:
- Donchian Channel (structure-based, adapts to volatility)
- ATR Multiplier (fixed distance based on Average True Range)
- Pattern-specific (detector calculated SL from candle extremes)
Default R:R targets: TP1=1.0R, TP2=1.5R, TP3=2.0R, TP4=3.0R (all customizable, set to 0 to disable any level).
Live Signal Tracking
The indicator tracks each signal from detection through completion:
- Pending: waiting for entry price to be hit
- Active: entry hit, tracking toward TP or SL
- Finished: TP or SL reached
A dotted tracking path shows the actual price movement after each signal. Profit/loss labels appear at hit points. Zone fill rectangles visualize risk and reward areas on the chart.
Donchian Channel Trailing Stop
An optional trailing stop system that automatically adjusts the stop loss as price moves favorably:
- Uses the Donchian Channel (lowest low / highest high over N bars)
- Activates after price reaches a configurable R:R threshold
- Locks at breakeven when TP1 is hit
- Visual color changes: orange (trailing buy), yellow (trailing sell), green (locked at breakeven)
Multi-Timeframe Scanner (150 Symbols x 8 Timeframes)
Monitor patterns across the entire market from a single chart:
- Scans up to 150 symbols from your Market Watch
- Checks 8 timeframes: M1, M5, M15, M30, H1, H4, D1, W1
- Live dashboard panel shows detected signals with quality scores
- Configurable batch scanning to control CPU usage
- Independent alert system for scanner-detected signals
Scanner can operate in two modes:
- Current Symbol MTF: scans only the chart symbol across all timeframes
- Full Market Scan: scans all Market Watch symbols across selected timeframes
Market Structure Analysis (BOS / CHOCH)
Built-in Break of Structure and Change of Character detection:
- Identifies swing highs and lows using fractal analysis
- Labels swing sequences: HH (Higher High), HL (Higher Low), LH (Lower High), LL (Lower Low)
- Detects BOS (trend continuation) and CHOCH (trend reversal) events
- Configurable timeframe and sensitivity
- Visual lines and labels on chart
Multi-Layer Signal Filtering
Seven independent filters to reduce noise and increase signal quality:
- Quality Filter — Reject weak patterns below a configurable quality threshold
- Extreme Zone Filter — Block signals near overbought/oversold zones using Donchian Channel position
- Direction Filter — Only allow signals aligned with market structure trend
- Stop Hunt Filter — Validate signals originating from liquidity sweeps of prior swing levels
- Signal Zone Filter — Require signals near meaningful BOS/CHOCH events
- Spacing Filter — Enforce minimum bar distance between consecutive signals
- Opposite Signal Filter — Prevent conflicting buy/sell signals simultaneously
Each filter can be enabled/disabled independently.
4-Channel Alert System
Never miss a signal with multi-channel notifications:
- Desktop Popup Alert (MT5 Alert dialog)
- Sound Alert (customizable sound file)
- Mobile Push Notification (MT5 mobile app)
- Configurable for Entry hits, TP hits, and SL hits separately
Anti-spam: once-per-signal deduplication with configurable cooldown period.
Signal Statistics Dashboard
A draggable panel displaying real-time performance metrics:
- Total signals detected
- Win/Loss count and Win Rate percentage
- Active vs completed signal counts
- Customizable position, font size, and row height
Professional Chart Themes
Built-in color schemes for comfortable chart reading:
- Dark Muted (default) — reduced eye strain
- Dark — high contrast
- Light — bright background
- Custom — full color control for every chart element
Original chart colors automatically restored when indicator is removed.
EA Signal Buffers
Indicator outputs are available as data buffers for Expert Advisors:
- Buffer 0: Signal direction (1=Buy, -1=Sell)
- Buffer 1: Entry price
- Buffer 2: Stop Loss price
- Buffer 3-6: TP1-TP4 prices
- Buffer 7: Quality score
Connect your EA to read these buffers for automated trade execution.
Recommended Settings
- Timeframes: H1, H4, D1 (gap-based patterns are more reliable on higher timeframes where genuine gaps occur)
- Symbols: Works on all markets. Particularly effective on stocks, indices, and commodities with natural overnight gaps. Forex and crypto work with ATR-based dislocation thresholds
- Account type: Any (demo or live)
- Minimum bars on chart: 500+ for reliable market structure analysis
Installation
- Download and place in your Indicators folder
- Drag onto any chart
- Enable "Allow notifications" in MT5 if using push alerts
- Adjust Quality Score threshold to control signal frequency (lower = more signals, higher = fewer but stronger signals)
Notes
- This indicator does NOT repaint — signals are confirmed on bar close only
- All calculations use completed bars (bar index 1+) for stability
- Scanner operates asynchronously to prevent chart lag
- Memory-optimized for 24/7 continuous operation
Documentation and User Guides
Detailed guides for each feature are available on the MQL5 Blog:
| PART | Section | Description | ||
|---|---|---|---|---|
| 1 | INTRODUCTION | Product introduction, what the product helps you with | ||
| 2 | INSTALLATION & SETUP | System requirements, step-by-step installation guide | ||
| Guide to Installing Free Indicators and EAs Included with the Mirage Trading System Purchase | ||||
| 3 | INTERFACE DISPLAY | Explanation of the components displayed on the chart | ||
| User Guide: Trading Lines & Signal Tracking System | The system automatically draws Entry, Stop Loss, and Take Profit lines (TP 1–4) on the chart, tracks price action for hits, records Win/Loss results, and displays real-time performance statistics. | |||
| User Guide : Visualization, Zone Fill, Signal Dashboard & Cancelled Signals | When you attach an indicator to a chart, the system renders the following visual components for each detected signal | |||
| User Guide: MTF SCAN & Dashboard User Guide | MTF SCAN automatically scans all Market Watch symbols across 8 timeframes (M1 to W1) and displays results on a Dashboard grid directly on your chart. | |||
| User Guide : Chart Theme User Guide | Chart Theme is a feature that changes the entire chart color scheme in MetaTrader 5 — including the background, candles, grid, text, and Bid/Ask lines — with a single click. | |||
| 4 | CORE CONCEPTS | Fundamental concepts that the system is built upon | ||
| User Guide: Market Structure Functionality in the Trading System | Identifies trend direction (Uptrend, Downtrend, Ranging) by analyzing swing highs/lows, and detects key events: BOS (trend continuation) and CHoCH (potential trend reversal). | |||
| User Guide : Signal Types, States, and Lifecycle | A signal is the system's notification when it detects a qualifying candlestick pattern on the chart. Each signal tells you the expected price direction and provides suggested entry, stop loss, and take profit levels. | |||
| 5 | SIGNAL FILTERS | Filters that refine and validate trading signals | ||
| User Guide: Trade Direction (Direction Filter) in the Trading System | Defines the allowed trading direction (Buy only, Sell only, both, or neither) as the first filter before searching for entry signals, based on current market trend. | |||
| User Guide: Signal Zone Filter in the Trading System | Eliminates signals not near important price zones, retaining only those connected to market structures (swing high/low, BOS, CHoCH) to reduce noise. | |||
| User Guide: StoplossHunt Filter User Guide — Filtering "SL Sweep" Signals | Identifies higher-probability signals by checking whether price "swept stoploss" before forming a pattern. | |||
| User Guide : Extreme Zone Filter | Extreme Zone Filter is a signal filtering feature that helps avoid entering trades when price is at the top or bottom of a Donchian price channel. | |||
| User Guide: Opposite Signal Filter | The Opposite Signal Filter is an automatic feature that prevents new signals from appearing when you already have an active trade running in the opposite direction.The principle is very simple: Don't buy when you're selling. Don't sell when you're buying. | |||
| User Guide : Quality Filter User Guide | Quality Filter is a feature that helps you receive only the best signals — price patterns formed clearly, with balanced proportions and high reliability — and reject weak signals, dull patterns, and those below standard. | |||
| 6 | TRADE MANAGEMENT | |||
| User Guide : Risk/Reward & SL Method User Guide | Risk/Reward (R:R) is the ratio between the amount of money you accept losing (Risk) and the amount of money you expect to gain (Reward) in a single trade. | |||
| User Guide: Trailing Stop Loss (TSL) User Guide | Regular Stop Loss (SL) stays fixed in one place. You set SL at 1990.00, and it stays there forever — even if price has risen to 2030.00.Trailing Stop Loss (TSL) is different. It automatically moves in your favor when price advances. As price moves up, TSL moves up with it. When price stalls or reverses, TSL holds the best position it reached. | |||
| 7 | CONFIGURATION PARAMETERS GUIDE | Detailed guide to each configuration parameter | ||
| SIGNAL SCANNING CONFIGURATION GUIDE - MIRAGE TRADING SYSTEM EA | Guide to mastering signal scanning settings within the Inputs tab, optimizing trade discovery on a single chart or across the entire market. | |||
| 8 | ALERTS & NOTIFICATIONS | |||
| User Guide: Alerts & Notifications User Guide | Configure push notifications, and on-screen popups when new signals are detected. | |||
| 9 | SYSTEM RISKS & LIMITATIONS | Notes on system risks and limitations |
All guides include parameter explanations, chart examples, and recommended settings for each feature.
Support
- Product comments section on this page
- Direct message to the author via MQL5
- Response time: within 24 hours
