- 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
7.5 KiB
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:
- Strategy doesn't suit current market condition
- Insufficient volatility
- Symbol-specific issue
Solutions:
- Try different strategy (e.g., Mean Reversion if trending, MA Cross if ranging)
- Try different timeframe (M15, H1, H4)
- Try major pair (EURUSD, GBPUSD, USDJPY)
- Increase MonitorBars to 500
"Too many signals (noise)"
Solutions:
- Use Multi-Strategy for filtered signals
- Increase timeframe (M15 → H1 → H4)
- 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:
- Note the strategy name (e.g., ENTRY_MA_PULLBACK)
- Open your main EA (ERMT_7.1_ERMT-ML.mq5)
- Set input parameter:
EntryMode = [strategy you tested] - Configure risk parameters:
RiskPercent = 1.0-2.0% MaxPositions = 2-3 MinTimeBetweenTrades = 30-60 min - Test on demo for 1-2 weeks
- 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
- Test during active market hours (London/NY session)
- Run monitor for 200-500 bars for better statistics
- Test on multiple timeframes (M15, H1, H4)
- Compare different symbols - strategies perform differently per pair
- Re-test quarterly - market conditions change
Happy Testing! 🚀
The real-time monitor will give you accurate signal frequency data.