MethodKit Trend Range Switch EA
- Uzmanlar
- Sürüm: 1.0
- Etkinleştirmeler: 5
MethodKit Trend Range Switch EA
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.
Short description
Uses ADX to pick a regime: a Donchian breakout when ADX says the market is trending, and a Bollinger re-entry when it says the market is ranging, always with a stop loss.
Combination (ADX regime switch: Donchian breakout or Bollinger re-entry). Default stop and exit: ATR x 2 (no take-profit by default; exit on the Donchian exit channel or the middle Bollinger band, whichever comes first).
Designed for EURUSD, GBPUSD and USDJPY on the H1 or H4 chart. 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
On each new bar the EA reads ADX (default period 14). If ADX is at or above the threshold (default 25), it is in trend regime and uses a Donchian entry channel (default 20): a close above the channel high is a buy, a close below the channel low is a sell. If ADX is below the threshold, it is in range regime and uses Bollinger Bands (default period 20, deviation 2.0): a buy is a return inside the lower band, a sell is a return inside the upper band. An open position is closed on the Donchian exit channel (default 10) or at the middle Bollinger band, whichever comes first, or at the stop loss (ATR x 2 by default). There is no take-profit by default. The two methods are public building blocks combined by a simple ADX switch; this is not a claim that the combination improves results. A stop loss is always attached. There is no grid, averaging down, or martingale.
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
- ADX period (InpRSADX), default 14: Period of the ADX used to pick the regime.
- ADX at/above = trend regime, below = range regime (InpRSADXTrend), default 25.0: Threshold that switches between the Donchian rules and the Bollinger rules.
- Trend: Donchian entry channel (InpRSDonch), default 20: Entry channel length used in the trend regime.
- Trend: exit channel (InpRSExitCh), default 10: Exit channel length used as one of the exit rules.
- Range: Bands period (InpRSBB), default 20: Bollinger period used in the range regime.
- Range: Bands deviation (InpRSBBDev), default 2.0: Bollinger deviation used in the range regime.
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.
