MethodKit MA Deviation EA
- Experts
- Versione: 1.0
- Attivazioni: 5
MethodKit MA Deviation 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
Opens when the distance from a moving average, measured in ATR units, comes back inside a set threshold, and exits when price returns to the average, or at the stop loss.
Mean reversion (distance from a moving average, in ATR units). Default stop and exit: ATR x 2.5 (no take-profit by default; exit when the close returns to the moving average).
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 measures (close minus the moving average) divided by ATR(14). The average defaults to SMA(50); the method (SMA, EMA and so on) and the period are adjustable. A buy signal is when that signed distance was below minus the threshold (default 2.5 ATR) on the previous bar and has come back to or above that threshold. A sell signal is the mirror from above plus the threshold. The position is closed when the close is back at or through the moving average, or at the stop loss (ATR x 2.5 by default). There is no take-profit by default. 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
- MA period (InpDevMA), default 50: Period of the reference moving average.
- MA method (InpDevMethod), default Simple (SMA): SMA, EMA, SMMA or LWMA.
- Enter when |close - MA| > ATR(14) x this (InpDevATR), default 2.5: Threshold in ATR(14) units. The signal is the return from beyond this distance, not the first break of it.
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.
