Breakout Retest Bitcoin PRO
- Experts
- Alfred Denzyl Jaftha
- Versione: 1.0
- Attivazioni: 5
BTCUSDm Breakout & Retest Static TP
H4 breakout • M15 retest • fixed TP • 1 % risk per trade
Overview
The BTCUSDm Breakout & Retest EA implements a simple, robust strategy on the BTCUSDm futures contract:
-
Detects consolidation breakouts on the H4 timeframe.
-
Waits for a retest of the breakout level on the M15 chart.
-
Enters market orders with a static, reward-to-risk TP based on a configurable multiplier.
All orders are sized to risk a fixed percentage of account equity, with a hard cap on maximum lot size.
Key Features
-
Dual-timeframe logic
-
H4 breakout detection over N bars
-
M15 retest confirmation within M bars
-
-
Static Take-Profit
-
User-configurable reward-to-risk ratio (TP_Multiple)
-
Automatically calculates SL distance and TP level
-
-
1 % Fixed Risk
-
RiskPercent input manages per-trade risk as a percent of balance
-
MaxLot input caps individual order volume
-
-
Pure Market Orders
-
No pending orders, no grid, no martingale
-
Single market-execution per confirmed setup
-
-
Chart Annotations
-
Draws buy/sell arrows at entry points for visual back-testing
-
-
Fully Parameterized
-
All inputs in Latin characters for seamless publication
-
No DLL calls, no built-in time or account limitations
-
Inputs
| Parameter | Type | Default | Description |
|---|---|---|---|
| SymbolName | string | “BTCUSDm” | Symbol to trade |
| RiskPercent | double | 1.0 | Percent of balance risked per trade |
| MaxLot | double | 0.03 | Maximum allowable lot size |
| H4Bars | int | 8 | Number of H4 bars used to define consolidation range |
| RetestBars | int | 4 | Max M15 bars to wait for retest |
| TP_Multiple | double | 3.0 | Reward-to-risk ratio for TP calculation |
| Slippage | int | 3 | Maximum slippage in points |
| MagicNumber | int | 20250701 | Unique magic number for EA orders |
How It Works
-
Initialization
-
Sets your unique MagicNumber
-
Reads user inputs
-
-
H4 Breakout Detection
-
Calculates highest high / lowest low over the last H4Bars
-
Flags a long if H4 candle-close breaks above the high (or short if below the low)
-
-
M15 Retest Confirmation
-
Monitors price for up to RetestBars M15 bars
-
Triggers only when price “touches back” to the breakout boundary
-
-
Order Execution
-
Calculates stop-loss at the opposite boundary of the H4 range
-
Computes take-profit via TP_Multiple × R (where R = stop-loss distance)
-
Sizes the trade so that a loss would equal RiskPercent of account equity (capped by MaxLot )
-
Executes a single market Buy or Sell
-
-
Chart Markers
-
Places a colored arrow at the exact entry bar for easy visual verification
-
Requirements
-
MT5 Platform
-
Pure MQL5 (no external libraries or DLLs)
-
Single EX5 file
-
Latin-only names in code and inputs
Unlock reliable H4-breakout entries with M15 retest precision — all in a lean, easy-to-configure EA. Perfect for accounts prioritizing strict risk management and clear, mechanical rules.
Version: 1.00
Author: Alfred jaftha
Link: https://www.mql5.com/en/users/exquisite532659
