mql5/Experts/Advisors/ERMT_7x/Guides/TESTING_GUIDE.md
darashikoh 0e9fdab53a feat(ermt-2x): consolidate 2.1+2x optimisation updates and add 2.2 source
- merge 2.1 optimisation work into 2x line

- add ERMT_PME_2.2_M5.mq5 source

- include ERMT PMEx code updates in 2.1 file and core modules

- include project knowledge/design documentation updates

- exclude logs, snapshots, and chart/profile noise from commit
2026-03-25 00:31:09 +00:00

7.5 KiB

noteId tags
47f2668127dd11f19754a37e3f6df08f

Testing Guide - Enhanced Entry System

⚠️ Important Discovery

The original Test_EntrySystem_SignalFrequency.mq5 has a fundamental limitation:

  • It tries to scan historical bars
  • BUT the EntrySystem indicators always read from current bar (bar 0)
  • This means signals weren't being detected properly in historical scan

Solution: Real-Time Signal Monitor

Use the new Test_EntrySystem_Simple.mq5 indicator instead!


🚀 How to Use the Real-Time Monitor

Step 1: Compile

MetaEditor → Open Test_EntrySystem_Simple.mq5 → Press F7
Expected: 0 errors, 0 warnings

Step 2: Attach to Chart

1. Open chart (EURUSD M15 recommended)
2. Navigator → Indicators → Custom
3. Find: Test_EntrySystem_Simple
4. Drag onto chart
5. Configure in dialog:
   - TestStrategy = ENTRY_MA_CROSS (or any strategy)
   - MonitorBars = 100
   - PrintAllSignals = true
   - ShowStatistics = true
6. Click OK

Step 3: Watch Results

The indicator will monitor each new bar formation and print signals in real-time!


📊 Sample Output

╔════════════════════════════════════════════════════════════════╗
║        ENTRY SYSTEM REAL-TIME SIGNAL MONITOR                  ║
╚════════════════════════════════════════════════════════════════╝

Monitor Configuration:
  Symbol: EURUSD
  Timeframe: PERIOD_M15
  Strategy: ENTRY_MA_CROSS
  Monitoring for: 100 bars

✓ Initialization complete. Monitoring for signals...

═══ SIGNAL #1 ═══
  Time: 2025.10.29 10:15
  Type: BUY
  Comment: MA Bullish Cross
  Confidence: 75.0%
  Entry Price: 1.08456
  Stop Distance: 125.3 points
  Target Distance: 312.5 points
  R:R Ratio: 2.49:1

─── Progress Update ───
  Bars Checked: 10 / 100
  Signals Found: 1
  Signal Rate: 10.0% of bars
  Average Confidence: 75.0%

═══ SIGNAL #2 ═══
  Time: 2025.10.29 11:45
  Type: SELL
  Comment: MA Bearish Cross
  Confidence: 72.5%
  ...

[Continues monitoring until 100 bars]

╔════════════════════════════════════════════════════════════════╗
║              MONITORING COMPLETE - FINAL REPORT                ║
╚════════════════════════════════════════════════════════════════╝

Test Summary:
  Strategy Tested: ENTRY_MA_CROSS
  Total Bars Monitored: 100
  Total Signals: 8

Signal Distribution:
  Buy Signals: 5 (62.5%)
  Sell Signals: 3 (37.5%)

Signal Quality:
  Average Confidence: 73.25%
  Min Confidence: 65.0%
  Max Confidence: 85.0%

Signal Frequency:
  Signal Rate: 8.00% of bars
  Bars Per Signal: 12.5
  Estimated Signals/Day: 7.68

Assessment:
  ✓ GOOD FREQUENCY - Suitable for intraday trading

🧪 Test Each Strategy

Run the monitor 6 times, once for each strategy:

1. MA Crossover

TestStrategy = ENTRY_MA_CROSS
Best for: Trending markets
Expected on M15: 4-8 signals/day

2. MA Pullback

TestStrategy = ENTRY_MA_PULLBACK
Best for: Strong trends with retracements
Expected on M15: 3-6 signals/day

3. Momentum

TestStrategy = ENTRY_MOMENTUM
Best for: Strong directional moves
Expected on M15: 3-5 signals/day

4. Breakout

TestStrategy = ENTRY_BREAKOUT
Best for: Volatile markets
Expected on M15: 4-8 signals/day

5. Mean Reversion

TestStrategy = ENTRY_MEAN_REVERSION
Best for: Ranging markets
Expected on M15: 2-5 signals/day

6. Contrarian

TestStrategy = ENTRY_CONTRARIAN
Best for: Extreme moves
Expected on M15: 1-3 signals/day (rare)

7. Multi-Strategy

TestStrategy = ENTRY_MULTI_STRATEGY
Best for: All conditions (consensus)
Expected on M15: 2-4 signals/day (high quality)

📈 Interpreting Results

Signal Frequency

Signals/Day Assessment Use Case
0-1 Too Low Try different timeframe/symbol
1-3 Low Good for swing trading
3-8 Moderate Good for intraday
8-15 High Good for scalping
15+ Very High High-frequency trading

Signal Quality (Confidence)

Avg Confidence Quality Action
< 60% Low Consider different strategy
60-70% Moderate Acceptable with good risk mgmt
70-80% Good Deploy with confidence
80%+ Excellent High-quality signals

R:R Ratio

Avg R:R Assessment
< 1.5:1 Poor - Need adjustment
1.5-2.0:1 Good
2.0-3.0:1 Excellent
3.0+:1 Outstanding

🔍 Troubleshooting

"No signals generated after 100 bars"

Possible Causes:

  1. Strategy doesn't suit current market condition
  2. Insufficient volatility
  3. Symbol-specific issue

Solutions:

  1. Try different strategy (e.g., Mean Reversion if trending, MA Cross if ranging)
  2. Try different timeframe (M15, H1, H4)
  3. Try major pair (EURUSD, GBPUSD, USDJPY)
  4. Increase MonitorBars to 500

"Too many signals (noise)"

Solutions:

  1. Use Multi-Strategy for filtered signals
  2. Increase timeframe (M15 → H1 → H4)
  3. Main EA will apply additional filters (signal_threshold, time restrictions)

"Signals but poor quality (low confidence)"

Diagnostic:

  • Check if market condition suits strategy
  • Mean Reversion in trending market = poor signals
  • MA Pullback in ranging market = poor signals

Solution: Match strategy to market condition!


Validation Checklist

Before deploying to main EA:

  • Monitor shows signals being generated
  • Estimated signals/day matches your needs
  • Average confidence > 65%
  • Average R:R > 1.5:1
  • Strategy matches current market condition
  • Tested on your preferred symbol
  • Tested on your preferred timeframe

🎯 Next Steps

Once you find a strategy that generates good signals:

  1. Note the strategy name (e.g., ENTRY_MA_PULLBACK)
  2. Open your main EA (ERMT_7.1_ERMT-ML.mq5)
  3. Set input parameter:
    EntryMode = [strategy you tested]
    
  4. Configure risk parameters:
    RiskPercent = 1.0-2.0%
    MaxPositions = 2-3
    MinTimeBetweenTrades = 30-60 min
    
  5. Test on demo for 1-2 weeks
  6. Deploy to live with appropriate position sizing

📝 Comparison Table Template

Create your own comparison by running the monitor for each strategy:

Strategy Signals/Day Avg Conf Avg R:R Rating
MA Cross ? ? ? ?/5
MA Pullback ? ? ? ?/5
Momentum ? ? ? ?/5
Breakout ? ? ? ?/5
Mean Reversion ? ? ? ?/5
Contrarian ? ? ? ?/5
Multi-Strategy ? ? ? ?/5

Fill this in based on your results!


💡 Pro Tips

  1. Test during active market hours (London/NY session)
  2. Run monitor for 200-500 bars for better statistics
  3. Test on multiple timeframes (M15, H1, H4)
  4. Compare different symbols - strategies perform differently per pair
  5. Re-test quarterly - market conditions change

Happy Testing! 🚀

The real-time monitor will give you accurate signal frequency data.