MethodKit Box Breakout
- Эксперты
- Версия: 1.0
- Активации: 5
MethodKit Box Breakout
This Expert Advisor implements a well-known, public trading method and is offered for reference. It does not promise profit. Trading decisions and risk are yours. Past results do not guarantee future results. It is sold as a one-off tool, with no individual advice, signals, or set-up service. It is not an official product of, and is not endorsed or licensed by, any third-party author or rights holder.
Short description
Builds a box whose edges are confirmed after a set number of bars, enters on a break of an edge, and places the stop at the opposite edge. A volume filter is available and is off by default.
Breakout (confirmed price box). Default stop and exit: the method's own level = the opposite box edge (fallback ATR x 2). No take profit by default. Exit if a later bar closes back through the opposite edge.
Designed around USDJPY, EURUSD and XAUUSD on D1 (the box timeframe is an input; it can be attached to M15 or H1 while the box is read on D1). It can be attached to any symbol and timeframe the broker offers. These are the conditions the method is built around, not a performance claim.
How it works
This is a reference implementation of a publicly described box-breakout method. On the box timeframe (default daily), a box top is a high that is not exceeded for 3 later bars, and a box bottom is a low that holds for 3 later bars (the confirmation length is an input). By default the box extreme must also be an N-bar high or low (default 252 bars, about a year of daily bars). A buy is taken when the bid breaks the confirmed top; a sell when the ask breaks the confirmed bottom. The stop is the opposite edge of the box. If a later bar closes back through that edge, the position is closed. A tick-volume filter can require the breakout bar to be above an average volume; it is off by default. A stop loss is always attached. There is no grid, averaging down, or martingale. It is not an official product of, and is not endorsed or licensed by, any third-party author or rights holder.
Shared risk controls
A stop loss is always attached. Lot size is a fixed lot or a percentage of equity at risk (hard cap 5 percent), plus a maximum-lot cap. Maximum open positions (default 1). A daily loss stop (default 3 percent of the day-start balance). A spread filter, a magic number, and broker GMT offset and DST inputs. No grid, no averaging down, no martingale.
Method inputs
- Bars required to confirm a box edge (InpBXConfirm), default 3: How many later bars must hold the high or low.
- Bars searched when building the box (InpBXLookback), default 120: How far back the EA looks for a confirmed box.
- Require the box extreme to be an N-bar high or low (InpBXNewExt), default true: Optional new-high / new-low filter; on by default.
- Lookback for the new-high / new-low filter (InpBXExtBars), default 252: Used only when the new-extreme filter is on.
- Volume filter (tick volume) (InpBXUseVolume), default false: Off by default.
- Average volume period (InpBXVolPeriod), default 20: Used only when the volume filter is on.
- Breakout volume vs the average (InpBXVolMult), default 1.50: Used only when the volume filter is on.
- Box timeframe (InpBXTF), default D1: Timeframe used to build the box. The EA can sit on a lower chart.
The common inputs (lot mode, fixed lot, risk percent, maximum lot, stop-loss mode, maximum positions, daily loss stop, spread filters, magic number, broker time, and the others listed in the user manual) are the same as in the other MethodKit EAs.
Important
This software does not predict markets and is not investment advice.
Trading leveraged products (FX, CFDs and similar) carries a high risk of loss. You can lose more than you expect, including, in some cases, more than your deposit.
That includes backtests and any forward or demo results.
Please test in the Strategy Tester and on a demo account, and confirm the broker's GMT offset, before any live use. Support is limited to installation questions and bug fixes.
Nothing in this description is a solicitation to buy or sell any financial instrument.
Installation
Copy the compiled .ex5 file into the MQL5/Experts folder, attach it to a chart, set the broker GMT offset, and allow algorithmic trading. Test it in the Strategy Tester and on a demo account first. See the user manual for the full input list.
