MethodKit Trend EMA Pullback
- Experts
- 버전: 1.0
- 활성화: 5
MethodKit Trend EMA Pullback
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
Trades a pullback to a 20-period EMA when ADX is strong and rising, with the stop at the pullback extreme, and exits when the close crosses back through the EMA.
Trend pullback (ADX filter and EMA touch, then a break of the prior bar). Default stop and exit: the method's own level = the pullback bar's extreme (fallback ATR x 2). No take profit by default. Exit on a close through the EMA.
Designed around EURUSD, USDJPY and XAUUSD on H1 or H4. 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 trend-pullback method. On each new bar the EA reads a 14-period ADX and a 20-period EMA (both periods are inputs). A long setup requires ADX above 30 and rising, plus DI above minus DI, a non-falling EMA, and a bar that touches the EMA from above and holds (the close stays at or above the EMA). A sell setup is the mirror. After the setup bar, a buy is taken if price exceeds that bar's high, or a sell if price breaks that bar's low, within a set number of bars (default 3). The stop is the extreme of the setup bar. The position is also closed when a later bar closes back through the EMA, or when an opposite setup appears. 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
- ADX period (InpTEADXPeriod), default 14: Period of the ADX and directional indicators.
- Minimum ADX (InpTEADXMin), default 30: ADX must be at or above this value and rising.
- EMA period for the pullback (InpTEEMA), default 20: The average that must be touched and held.
- Setup stays valid for this many bars (InpTEExpireBars), default 3: The break of the setup bar must occur within this many bars.
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.
