MrFractal Swing
- Experts
-
Alexey Nazarov
MQL4/MQL5 developer with 10+ years of hands-on trading experience. I build Expert Advisors, indicators and scripts for your strategy: trend, grid, martingale, breakout, multi-currency. I implement logic based on ICT/SMC, Elliott Wave, divergences and liquidity levels. Track record: 3 products on - Versione: 1.0
An Expert Advisor for BTCUSD on the H1 timeframe based on market structure through fractals. Entries are taken on a breakout of the latest confirmed fractal level at candle close, with an optional add-on entry on a retest of the same level. The stop loss is derived from ATR and trails forward on new opposing fractals. No take profit is used — exits happen only via stop loss or trailing.
Logic: direction is defined by a breakout of the upper or lower fractal (the number of bars left/right required for confirmation is configured separately). The first entry is a market order at candle close, with no initial stop loss. A second entry on the same direction is an add-on triggered on a retest of the same fractal level, after which a shared ATR-based stop (ATR × multiplier) is applied to both positions. Trailing only moves the stop when the hypothetical result at the candidate stop price is non-negative, and updates both positions at once. Position size for each of the two entries is calculated separately as a percentage of account balance.
Backtest results (Strategy Tester, historical data): BTCUSD, H1, 2020.01.01–2026.06.23, 100% real ticks, broker RoboForex-Pro, deposit 100,000 USD, leverage 1:500. The test was run in long-only mode — sell entries were disabled and not tested.
- 836 completed trades (1,672 entry/exit orders)
- win rate: 52.87%
- profit factor: 1.37
- recovery factor: 3.94
- Sharpe ratio: 1.18
- maximum equity drawdown: 21.93%
- net profit over the period: 140,297.78 USD (+140.3% of deposit)
These figures come from historical Strategy Tester testing and do not guarantee future or live-account results.
Requirements and compatibility: hedging accounts only — on a netting account the second entry would merge into the first position, breaking the shared-stop logic. Symbol BTCUSD, timeframe H1 (the logic is built specifically around H1 fractals). An ECN-type account with low BTC spreads is recommended. Test on a demo account first and size the risk percentage to your own deposit before trading live.
Input parameters (by group): fractal — number of bars left/right required to confirm a fractal; trading — direction, risk percent of balance, breakout buffer in percent of price, slippage, magic number; shared stop — ATR period and multiplier; visualization — display of fractal levels and the shared stop on the chart.
Important: the first entry opens with no stop loss and stays unprotected until trailing first moves the stop (only once the hypothetical result is non-negative) or until the second entry fires with its ATR-based stop. This is a deliberate part of the logic, not a defect — factor it into your risk sizing.
