Mpx Ibs4 Inside Bar
- エキスパート
- バージョン: 1.0
- アクティベーション: 10
MPX-IBS4 — Inside Bar Breakout EA
Gold (XAUUSD) | H1 | MetaTrader 5
Overview
MPX-IBS4 is an Inside Bar Breakout Expert Advisor for Gold (XAUUSD) on the H1 timeframe. It identifies Inside Bar patterns where the current bar is fully contained within the previous bar's range, then filters for only the tightest setups using a Narrow Range Filter. Entries are placed as pending BuyStop/SellStop orders at the mother bar's extremes, aligned with the EMA trend direction.
The EA uses an OCO (One-Cancels-Other) system — once one pending order is triggered, the opposite is automatically cancelled.
MPX-IBS4 is part of the MPX Series — a collection of 6 EAs, each built on a distinct trading strategy, designed to be run together as a diversified portfolio.
Backtest Results
| Symbol | XAUUSD |
| Timeframe | H1 |
| Period | 2024.01.01 – 2026.06.12 |
| History Quality | 100% |
| Metric | Value |
|---|---|
| Initial Deposit | $500 |
| Total Net Profit | $1,576.62 (315%) |
| Profit Factor | 2.05 |
| Sharpe Ratio | 3.90 |
| Recovery Factor | 5.30 |
| Max Drawdown | 25.47% ($271.90) |
| Total Trades | 87 |
| Win Rate | 40.23% |
| Avg. Profit per Trade | $87.83 |
| Avg. Loss per Trade | -$28.80 |
⚠️ Past performance does not guarantee future results. Results may vary depending on broker, spread, and market conditions. Always backtest before going live.
How It Works
Entry Logic
- Inside Bar: current bar's high and low must be fully inside the previous (mother) bar
- Narrow Range Filter: inside bar width must be less than 40% of the mother bar width — only the tightest compressions qualify
- EMA Trend Filter (50): BuyStop placed only when price is above EMA; SellStop placed only when price is below EMA
- Entry is a pending stop order at the mother bar's extreme + ATR buffer
- OCO System: if one side triggers, the opposite pending order is immediately cancelled
- Pending orders expire automatically after a set number of bars if not triggered
Position Sizing
- Lot size calculated automatically based on % risk per trade
- SL set at the opposite extreme of the mother bar + ATR buffer
Risk:Reward
- Fixed RR ratio (default 2.5R) — TP = entry + (SL distance × RR Ratio)
Parameters
Strategy Settings
| Parameter | Default | Description |
|---|---|---|
| EMA_Period | 50 | EMA trend filter period |
| NR_Filter | 0.4 | Narrow Range Filter (inside bar width < mother bar × this) |
| ATR_Buffer_Mult | 0.3 | Entry/SL buffer beyond mother bar extreme (× ATR) |
Risk & Management
| Parameter | Default | Description |
|---|---|---|
| Risk_Percent | 1.0 | Risk per trade (% of balance) |
| Max_Lot | 5.0 | Maximum lot size (hard cap) |
| RR_Ratio | 2.5 | Risk:Reward ratio |
| Max_Pending_Bars | 5 | Cancel pending order after this many bars |
EA Settings
| Parameter | Default | Description |
|---|---|---|
| MagicNumber | 40004 | Unique EA identifier |
Recommended Usage
- Default parameters are optimized for XAUUSD H1 and can be used as-is
- Lowering Risk_Percent (e.g. to 0.5%) will reduce drawdown proportionally
- Max_Pending_Bars controls how long to wait for a breakout — increase for wider patterns, decrease for tighter timing
Important Notes
- MPX-IBS4 is a Pattern-based Breakout EA — win rate is below 50% by design, compensated by a 2.5R reward ratio
- Performs best in trending markets where inside bars resolve cleanly in one direction
- Requires a Hedging account — does not support Netting accounts
- Always test on a Demo account first before going live
- Results will vary across brokers due to differences in spread and execution
Requirements
| Platform | MetaTrader 5 |
| Account Type | Hedging |
| Recommended Symbol | XAUUSD |
| Recommended Timeframe | H1 |
| Minimum Deposit | $500 (at 1% risk) |
