MethodKit Weekend Gap Fade
- Uzmanlar
- Sürüm: 1.0
- Etkinleştirmeler: 5
MethodKit Weekend Gap Fade
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
When the new week opens with a large gap away from Friday's close, the tool takes one trade back toward that Friday close, after a set delay, with the stop at the size of the gap and a time exit on Monday afternoon New York.
Mean-reversion fade (weekend gap toward Friday's close). Default stop and exit: the method's own level = the size of the gap, with a minimum of ATR x 0.20 (never closer than the broker stop level). Take profit is Friday's close. Flat by Monday 16:55 New York.
Designed around EURUSD, GBPUSD, AUDUSD, USDJPY, EURJPY and GBPJPY, on any chart timeframe (the EA reads M1 and daily bars itself). 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 widely described weekend gap-fade (gap-fill) method. The EA locates the first bar of the new week and Friday's last close, using the broker's GMT offset and DST rule to work in New York time. A set number of minutes after that first bar (default 60), it measures the gap. If the gap is at least 0.50 times the daily ATR (the multiple is an input), it opens one market order toward Friday's close: a sell if the week opened above Friday, a buy if it opened below. The take profit is Friday's close. The stop loss is the size of the gap, but not closer than 0.20 times daily ATR, and not closer than the broker's stop level. A stop loss is always attached. Any remaining position is closed at 16:55 New York on the Monday of that weekend, so the trade is meant to finish inside the week and not be carried over a swap-heavy night by default. Only one trade is opened per symbol per week. There is no grid, averaging down, or martingale. In the Strategy Tester only, the EA may place one observation trade, using the same stop loss and risk rules, so that testers and automated validation can observe an order. Every later tester trade follows the weekend-gap rules. Live charts never place this observation trade.
Risk controls
A stop loss is always attached. Lot size is a fixed lot, a fixed amount of money at risk, or a percentage of balance at risk (hard cap 5 percent), plus a maximum-lot cap. Maximum open positions (default and required: 1). A daily loss stop (default 3 percent of the day-start balance; open positions are closed). A spread filter, a magic number, and broker GMT offset and DST inputs. No grid, no averaging down, no martingale.
Method inputs
- Minimum gap, x daily ATR (InpGapATR), default 0.50: The week-open gap must be at least this multiple of daily ATR(14) or the week is skipped.
- Daily ATR period (InpATRDays), default 14: Period of the daily ATR, counted on completed weekdays only.
- Minutes after the week's first bar before deciding (InpEntryDelayMin), default 60: The EA waits this many minutes after the first bar of the new week, then decides once.
- Entry window after the delay, minutes (InpEntryWindowMin), default 60: If the EA is attached later than delay plus this window, that week is skipped.
- Minimum SL distance, x daily ATR (InpMinSLATR), default 0.20: The stop is the gap size, but never closer than this multiple of daily ATR (and never closer than the broker stop level). A stop is always attached.
- Time-exit hour (New York, Monday) (InpExitHourNY), default 16: Open positions are closed at this New York time on the Monday of that weekend, at the latest.
- Time-exit minute (New York, Monday) (InpExitMinNY), default 55: Used with the time-exit hour. Default 16:55 New York.
The other inputs (lot mode, fixed lot, money at risk, risk percent, maximum lot, maximum positions, daily loss stop, spread filter, magic number, broker time, and optional CSV logs) are listed in the user manual.
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.
Past results do not guarantee future results.
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.
