Mirage Trading System | Buy Trading Indicator for MetaTrader 5
This functionality is available in the trading system
Main Manual : Mirage Trading System - Trading Systems - 5 February 2026 - Traders' Blogs
Opposite Signal Filter User Guide
1. What is the 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.
Simple example:
- You have an active SELL signal (not yet closed)
- A new BUY pattern appears in the market
- The system will block that BUY signal — because it conflicts with the active SELL
Without this filter, you would see both signals at the same time — BUY and SELL pointing in opposite directions on your chart. This causes confusion and often leads to wrong decisions.
Why is this feature useful?
- Avoid conflicts: Don't display two opposing signals at the same time
- Cleaner chart: Focus on one direction at a time
- Trading discipline: Force yourself to close old trades before considering new directions
- Reduce noise: The last filter in a chain of 7 filters — applied after all other filters
2. Input Parameter Setup
The Opposite Signal Filter has 2 parameters located in the === OPPOSITE SIGNAL FILTER === section of the indicator's Input window.
Parameter 1: Enable/Disable the filter
| MT5 Name | Type | Default |
|---|---|---|
| Enable opposite signal filter | bool (true/false) | true |
- true = Enabled — Opposite signals are blocked when a signal is active
- false = Disabled — All signals display, even if they conflict with each other
Default value by indicator:
- Mirage (Fakey): true
- PinBar: true
- Inverted Hammer: true
All three indicators are enabled by default because this is the recommended behavior.
Parameter 2: Show blocked signal markers
| MT5 Name | Type | Default |
|---|---|---|
| Show blocked signal markers | bool (true/false) | Depends on indicator |
- true = Display X marks or faded arrows at the position of blocked signals
- false = Blocked signals are completely hidden — nothing displays
Default value by indicator:
- Mirage (Fakey): false — completely hidden, cleaner chart
- PinBar: true — show X marks so you see rejected signals
- Inverted Hammer: true — show X marks for reference
3. How the filter works
Check process
Every time the system detects a new signal, the Opposite Signal Filter performs this check:
- What direction is the new signal? (BUY or SELL)
- Is there currently an opposite direction signal that is still active?
- If yes → the new signal is blocked
- If no → the new signal is accepted and displayed
Real-world scenario example
Scenario: An active SELL signal
Monday 10:00 — System detects SELL (Fakey downtrend pattern)
→ SELL signal appears, TP/SL tracking begins
Monday 14:00 — Price rises, system detects new BUY
→ Opposite Filter checks: "Is a SELL active?"
→ Yes! → BUY is BLOCKED
Monday 18:00 — SELL hits TP, closes (status: HIT_TP)
→ No more active SELL signal
Tuesday 09:00 — System detects new BUY
→ Opposite Filter checks: "Is a SELL active?"
→ No! → BUY is ACCEPTED and displayed
Definition of "active"
A signal is considered active when:
- Status is ACTIVE or PENDING (awaiting entry)
- Has not yet hit TP, not hit SL, not expired
A signal is no longer active when it has: Hit TP, Hit SL, expired, or been cancelled.
4. Blocked signal display
When Show blocked signal markers = true , blocked signals still appear on the chart but with a different visual style to distinguish them from valid signals.
How it looks
- Small X mark or faded arrow at the location where the pattern appeared
- No TP/SL lines (since this is not a real signal)
- Color is usually darker or grayer than normal signals
When to enable Show blocked markers?
Enable ( true ) when you want to:
- Know how many signals the system "skipped"
- Analyze whether blocked signals would have moved in the right direction
- Learn market reading — see the complete picture
Disable ( false ) when you want to:
- Really clean chart, showing only valid signals
- Focus on trading, avoid distraction
5. Frequently Asked Questions (FAQ)
Q: What if I disable the Opposite Signal Filter?
The system will display all signals regardless of active trades. You may see BUY and SELL appearing close together — useful if you want to make your own judgment, but confusing if you follow signals automatically.
Q: Does the filter block signals based on indicator status or real account orders?
The filter blocks based on signal status within the indicator (ACTIVE/PENDING), not actual orders in your MT5 account. If you don't take a trade on the signal, the filter still works based on the signal's status.
Q: Are blocked signals saved anywhere?
Yes. Blocked signals are still created in the system with status isBlocked = true . They are just not tracked for TP/SL and don't affect win/loss statistics.
Q: Does this filter work in the MTF Scanner?
Yes, but behavior differs:
- On current chart (LOCAL): Blocked signals are created, marked isBlocked , can show X markers
- In MTF Scanner (multi-timeframe): Blocked signals are completely rejected — not created, not shown in Dashboard
Q: Can blocked signals be "unlocked" later?
No. Once a signal is blocked when it appears, it cannot be unlocked even if the original signal (SELL) closes later. A blocked signal is permanent — only new signals that appear after SELL closes can be accepted.
6. Usage tips
Tip 1: Use defaults if you're just starting
All three indicators have Enable = true by default — this is the recommended setting. Only disable if you have a specific reason (for example, to see all signals for research).
Tip 2: Enable Show blocked markers when analyzing history
When you scroll the chart into the past to learn from old data, enable Show blocked signal markers = true . You'll see the complete picture — which signals were accepted, which were rejected and why.
Tip 3: Combine with early trade closing discipline
This filter encourages you to close old signals when the market clearly changes direction. If your SELL doesn't hit TP/SL but the market starts rising strongly — manually close the SELL signal (if the indicator supports it) to "unlock" the filter for new BUY signals.
Version 1.15 | Ich Khiem Nguyen | https://www.mql5.com/en/users/khiemni/seller


