Zona Breaker
- Experts
-
Puguh Andrie Setia Aji
I am an independent developer specializing in MetaTrader 5 Expert Advisors and trading indicators. - Versão: 1.7
- Ativações: 5
ZonaBreaker — EA Session Box Breakout & Stop-Reverse
ZonaBreaker is an Expert Advisor (EA) for MetaTrader 5 designed around a Session Box Breakout strategy combined with a Stop & Reverse mechanism.
The EA first determines the High and Low of a specified trading session using M1 price data. Once the session has ended, ZonaBreaker creates a trading range and waits for the price to break through either the upper or lower boundary of that range.
Unlike EAs that continuously open multiple recovery positions, ZonaBreaker uses a controlled trading cycle with a maximum of two trades per daily cycle: the initial breakout trade and, if necessary, one reverse trade.
How ZonaBreaker Works
1. Session Box Formation
ZonaBreaker calculates:
- The highest High price
- The lowest Low price
during the configured trading session.
Default session:
- Start: 07:14 server time
- End: 11:09 server time
The resulting High and Low become the upper and lower boundaries of the Session Box.
The session range can also be displayed visually on the MT5 chart, allowing traders to clearly see the breakout area.
2. Breakout Pending Orders
After the Session Box has been calculated, the EA places two opposite pending orders:
Buy Stop
- Placed above the Session Box High.
- The distance from the High can be configured.
- Stop Loss is placed below the Session Box Low.
- Take Profit is calculated based on a percentage of the Session Box range.
Sell Stop
- Placed below the Session Box Low.
- The distance from the Low can be configured.
- Stop Loss is placed above the Session Box High.
- Take Profit is calculated based on a percentage of the Session Box range.
This allows the EA to automatically respond to either an upward or downward breakout without requiring manual entry.
3. Stop & Reverse Mechanism
One of ZonaBreaker's key features is the Stop & Reverse mechanism.
When the first breakout trade becomes active:
- The original opposite pending order is cancelled.
- The EA creates a new reverse pending order.
- The reverse pending order is placed at the Stop Loss level of the first trade.
- The reverse trade uses a larger lot size.
- The EA does not allow a third trade.
Example:
BUY Breakout → Trade 1 BUY
If the BUY trade reaches Take Profit:
- The pending SELL reverse order is cancelled.
- The trading cycle for that day is completed.
If the BUY trade reaches Stop Loss:
- The pending SELL Stop order can be triggered.
- The EA opens Trade 2 SELL.
- The cycle is completed after Trade 2 is closed.
The same logic applies in reverse for a SELL breakout.
Maximum 2 Trades per Cycle
ZonaBreaker is intentionally designed to avoid unlimited recovery.
The structure of each daily cycle is:
Session Box → Breakout → Trade 1 → Stop & Reverse if necessary → Trade 2 → Cycle Completed
The EA does not continue to Trade 3, Trade 4, or additional recovery trades.
This keeps the trading structure clear and controlled.
Automatic Lot Calculation
ZonaBreaker provides an account-balance-based lot sizing system.
Default formula:
Lot = (Balance / Balance Per 0.01 Lot) × 0.01
With the default setting:
Balance Per 0.01 Lot = 500
Examples:
- Balance $500 → approximately 0.01 lot
- Balance $1,000 → approximately 0.02 lot
- Balance $5,000 → approximately 0.10 lot
The volume is automatically adjusted according to:
- Broker minimum lot
- Broker maximum lot
- Broker lot step
Reverse Trade Lot Size
The reverse trade uses a lot size based on the volume of the first trade.
Default:
Reverse Lot = Trade 1 Lot × 4
This means that when the initial breakout fails and reaches its Stop Loss, the reverse trade uses a significantly larger position size.
Therefore, the reverse mechanism is an important part of the strategy and must be fully understood before using the EA on a live account.
Dynamic Take Profit
Take Profit is calculated dynamically based on the size of the Session Box.
The EA provides separate percentage settings for:
- TP Trade 1
- TP Trade 2 / Reverse
This allows the profit target to adapt to the session range rather than relying solely on a fixed price distance.
Daily Trading Schedule
ZonaBreaker operates according to the broker's server time.
The EA provides settings for:
- Session start time
- Session end time
- Pending order activation time
- Daily closing time
- Special Friday closing time
At the configured closing time, the EA automatically:
- Closes all ZonaBreaker positions.
- Deletes any remaining ZonaBreaker pending orders.
- Ends the trading cycle for that day.
Friday can use an earlier closing time to help prevent positions from being carried into the weekend.
Session Box Display
For easier chart analysis, ZonaBreaker can display the session area directly on the MT5 chart.
The chart can display:
- Session Box
- Box High level
- Box Low level
- Current EA status
- EA version
- Calculated High and Low values
This allows traders to clearly see the range used by the EA as the breakout reference.
Key Features
- Session Box Breakout strategy
- High/Low calculation based on M1 data
- Automatic Buy Stop and Sell Stop placement
- Stop & Reverse mechanism
- Maximum 2 trades per daily cycle
- No unlimited recovery
- Dynamic reverse lot sizing
- Automatic balance-based lot calculation
- Take Profit based on Session Box range percentage
- Configurable Stop Loss
- Configurable breakout distance
- Server-time session configuration
- Automatic daily position and pending order closure
- Special Friday closing schedule
- Magic Number-based position identification
- Slippage control
- Broker-compliant volume adjustment
- Price normalization based on tick size
- Visual Session Box on the chart
- Native MT5 pending order management
- Trading cycle/status management system
Risk Considerations
ZonaBreaker uses a Stop & Reverse mechanism with an increased position size, meaning that the reverse trade uses a larger lot than the initial trade.
Therefore, users should carefully consider:
- Account leverage
- Margin requirements
- Maximum acceptable drawdown
- Broker Stop Level
- Symbol volatility
- Spread conditions
- Lot size
- Reverse trade exposure
The EA should be thoroughly backtested and forward-tested on the intended symbol and broker before being deployed on a live account.
Suitable For
ZonaBreaker is designed for traders who prefer a session-based breakout approach combined with a limited Stop & Reverse mechanism rather than unlimited multi-level recovery.
Once properly configured, the EA can operate automatically without requiring manual entries.
Strategy Summary
DEFINE SESSION → CALCULATE HIGH/LOW → WAIT FOR BREAKOUT → TRADE 1 → IF STOP LOSS, REVERSE → TRADE 2 → DAILY CYCLE COMPLETED
