MP MegaScanner
- 유틸리티
- 버전: 1.37
- 활성화: 5
A universal multi-symbol scanner that combines two analytical systems in one panel.
⚙️ Functionality
- Finds entry points in the market and shows the MEGA TRADER — Complete User Guide
Version: 1.05 Type: Expert Advisor for MetaTrader 5 Purpose: automated trading of DIVERG divergence signals with a sideways-market filter, deposit-based risk management, ATR-based SL/TP and a trailing stop.
⚠️ Important: this is a fully automated Expert Advisor. It opens, modifies and closes trades on its own. Always test on a demo account first and make sure the risk settings match your strategy before using it on a live account.
1. What It Is
MegaTrader is the trading "little brother" of the MegaScanner indicator: it uses the same signal logic, but instead of displaying signals on a panel, it opens trades itself according to strict rules.
Key principles of the system:
Principle Implementation Sideways only The system is counter-trend (divergence-based) — it trades only when EMA150 is nearly flat and ADX is below the flat threshold Fixed risk Lot size is calculated so that the SL loss equals a set % of the account balance ATR-based SL/TP Stop and target scale with current volatility (ATR multipliers) TP 1:2 Take profit = 2 stop distances — the classic risk/reward ratio Trailing stop Profitable positions are managed with a trailing stop (SL follows price) Breakeven After the first target is hit, the position moves to breakeven 2. The DIVERG Signal System
The EA trades signals from the DIVERG system — reversal divergences and patterns:
Component What it uses Divergences RSI(9) and Stochastic — price/oscillator divergence Candlestick patterns Pin bar, engulfing, PPR (pindi-push-reverse), tweezer Volume Signal confirmation by increased volume Scoring Each fulfilled condition = 1 point; entry threshold — InpMinCond (recommended 2) Entry filters
Filter Parameter Purpose Sideways (EMA slope) InpFlatEma Blocks entries if EMA150 is tilted more than 0.10% over 20 bars — market in a trend Flat (ADX) InpFlatFilter / InpFlatAdx Blocks entries when ADX(14) is below 25 — too weak movement Max spread InpMaxSpreadPts Skips trades with widened spread (>30 points) Position limit InpMaxTrades / InpMaxPosPerSym One position at a time, max 1 per symbol 💡 Why the sideways filter is critical: divergences are a counter-trend tool. In a trend they produce losing streaks; in a sideways market they produce steady profit. The EMA slope filter removes trending regimes.
3. Risk Management
Lot calculation
risk money = balance × InpRiskPct / 100 loss per 1 lot = (|entry − SL| / tickSize) × tickValue lot = risk money / loss per 1 lot
So regardless of stop width, the loss per trade ≈ the set % of the deposit:
- narrow SL → larger lot;
- wide SL → smaller lot.
Protection
Protection Parameter Description Max lot InpMaxLot Insurance against over-risking (default 5.0) Margin check — Lot is automatically reduced if free margin is insufficient Min lot — If the calculated lot is below the minimum — the trade is skipped Normalization — Lot is rounded down to the step (lotStep) 📌 Example: deposit 10,000 USD, risk 3% = 300 USD per trade. If SL = 50 pips → lot ≈ 0.6. If SL = 15 pips → lot ≈ 2.0. The loss is ≈ 300 USD in both cases.
4. SL / TP / Trailing
Stop loss (ATR)
SL = low/high ± max(10 points, ATR(14) × InpSLATRMult)
The stop is placed beyond the signal bar's extreme with an ATR offset. If a support/resistance level is nearby, the stop is moved beyond it.
Take profit 1:2
TP = entry ± 2.0 × ATR(14) (1:2 ratio to the stop)
Trailing stop
Parameter Value Description InpTrailStart 0.5 ATR Trailing activates after +0.5 ATR profit InpTrailDist 1.0 ATR SL is kept 1.0 ATR from price Breakeven
After the first target (1.0 ATR) is reached, SL moves to breakeven (+5 points).
5. Installation & Setup
- Copy MegaTrader.mq5 to the MQL5\Experts\ folder.
- MetaEditor → Compile (F7) → should show 0 errors, 0 warnings .
- In MetaTrader 5, drag the EA onto a chart (e.g., EURUSD H1).
- Enable algorithmic trading (the "Algo Trading" button).
- Set InpTradeEnable=true , configure risk and press OK.
📌 The EA trades one symbol — the one it is attached to. The default timeframe is H1.
6. Recommended Settings (validated on 2023–2024)
Parameter Value Comment InpUseTrend false TREND branch adds noise — disabled InpUseDiverg true Main system InpMinCond 2 Optimal score threshold InpUseRisk / InpRiskPct true / 3.0 3% risk per trade InpFlatEma / Slope true / 0.10 Sideways filter InpFlatFilter / Adx true / 25 Flat filter InpTPLevel / TP2 2 / 2.0 ATR TP 1:2 InpTrailSL / Start / Dist true / 0.5 / 1.0 Trailing stop InpSLATRMult 1.5 Stop multiplier Backtest results (EURUSD H1, deposit 10,000, risk 3%)
Year Result 2024 +14.6% (11,458 USD) 2023 −40.6% (5,938 USD) 7. Important Warnings
- ⚠️ The system works only in a sideways market. In trending years (like 2023) it loses money. This is normal for divergence strategies — but keep it in mind when planning.
- ⚠️ 3% risk is aggressive. With a 10,000 deposit that is ~300 USD per trade. In a bad year the drawdown can reach 40%+. For conservative trading, lower it to 0.5–1%.
- ⚠️ Past results do not guarantee future returns. Parameters were fitted on 2023–2024. A forward test and periodic review are recommended.
- ✅ The EA uses InpMagic to identify its own trades — it does not conflict with other EAs.
- ✅ Check your broker's conditions: minimum lot, lot step, leverage and commissions.
8. Main Input Parameters (reference)
direction with an arrow right on the chart;Parameter Type Default Description InpMagic int 951357 Unique trade identifier InpTradeEnable bool true Trading allowed InpTF ENUM_TF PERIOD_H1 Working timeframe InpMinCond int 2 Minimum score for a signal InpLotFixed double 0.01 Fixed lot (if risk is off) InpUseRisk bool true Lot by risk % of balance InpRiskPct double 3.0 Risk per trade, % InpMaxLot double 5.0 Maximum lot InpTPLevel int 2 TP level (2 = double) InpBreakeven bool true Breakeven after TP1 InpTrailSL bool true Trailing stop InpTrailStart double 0.5 Trailing start, ATR InpTrailDist double 1.0 Trailing distance, ATR InpMaxSpreadPts double 30.0 Max spread, points InpMaxTrades int 1 Max simultaneous positions InpMaxPosPerSym int 1 Max positions per symbol InpUseTrend bool false Trade TREND signals InpUseDiverg bool true Trade DIVERG signals InpFlatEma bool true Sideways filter (EMA slope) InpFlatEmaBars int 20 Slope measurement period InpFlatEmaSlope double 0.10 Max EMA slope, % InpFlatFilter bool true Flat filter (ADX) InpFlatAdx int 25 ADX threshold InpSLATRMult double 1.5 SL = ATR × multiplier InpTP1ATRMult double 1.0 First target, ATR InpTP2ATRMult double 2.0 Second target (TP), ATR InpATRPeriod int 14 ATR period - Recommends entry point, Stop Loss and Take Profit (standard and ATR-based settings) — a ready-made trade plan without extra calculations;
- Trend Scanner — trend by EMA 150/365 (H1) + daily trend (D1 EMA 9/21), confirmed by RSI 14 and MACD;
- Divergence Scanner — divergences by Stochastic and RSI 9, reinforced by candlestick patterns (pin bar, engulfing, PPR) and above-average volume;
- Combo signals "2×BUY/SELL" — when both systems point in the same direction, you get a high-confidence signal;
- Support/Resistance levels — multiple price touches with above-average volume on higher timeframes;
- Signal bar highlighting and real-time updates every few seconds.
🛡️ Reliability
- The EA does NOT trade — it only analyzes: zero risk to your account;
- Flat market filter (ADX) — signals are blocked in a sideways market, where mistakes are most common;
- Double confirmation — two independent systems + multi-factor condition checks drastically reduce false signals;
- Full transparency: all conditions are configurable — from the number of matches to timeframes and indicator periods.
💎 Benefits
- Saves hours of manual analysis — scans dozens of instruments at once;
- Two views of the market in one table — trend and divergences at a glance, no chart switching;
- A ready trade plan — direction, entry point, stop and take are already determined;
- For all skill levels — beginners get ready signals, professionals get full logic transparency.
