Weekly Edge FX
- Experts
- Mindaugas Formalcikas
- 버전: 1.0
- 활성화: 20
Weekly Edge FX — Weekly Breakout Expert Advisor for MetaTrader 5
Overview
Weekly Edge FX is a fully automated Expert Advisor that trades breakouts of the previous week's high and low. The strategy is straightforward: when price breaks above last week's high or below last week's low during active trading hours, the EA enters a market order in the direction of the breakout. A moving average trailing stop manages the trade from entry to exit.
No martingale. No grid. One trade per week, per symbol.
Please do your own testing before going live!
How It Works
- Breakout detection — At the start of each new weekly candle, the EA records the high and low of the completed week. These become the breakout triggers.
- Live crossover entry — The EA enters only when price crosses the trigger level in real time during your defined trading hours. Breakouts that happened outside trading hours are ignored — the EA will not chase a move that already occurred.
- MA trailing stop — Once in a trade, a configurable Moving Average on the M5 timeframe trails the stop loss, locking in profit as the trade develops.
- Automatic exit — Positions are closed automatically before the weekly session ends (configurable minutes before close) or when a profit target in % of account balance is reached.
Key Features
- True live crossover detection — entry fires only when price actually crosses the level, not when it is already beyond it
- One trade per week — clean, disciplined exposure with no overlapping positions
- Risk-based or fixed lot sizing — choose between risking a fixed % of account balance per trade or a fixed lot size
- Session time and weekday filters — full control over when the EA is allowed to trade
- Spread filter — skip entries when spread is too wide
- Broker compliance checks — validates margin, volume, stops level and freeze level before every order
- Symbol filter — run the EA on multiple charts safely, restrict each instance to its intended symbol
- Auto-close before weekend — no open positions left over the weekend by default
- Profit-based auto-close — close the trade when floating profit reaches a defined % of account balance
Recommended Setup
| Setting | Value |
|---|---|
| Chart timeframe | M5 (EA uses W1 data internally) |
| Symbol | EURUSD (also works on other major Forex pairs) |
| Lot mode | Risk % (default 1%, recommend no more than 5% on eurusd) |
| Trading hours | 05:00 – 22:00 server time |
| Trading days | Monday – Thursday |
Input Parameters
| Parameter | Description |
|---|---|
| LotMode | Risk % or Fixed Lot |
| Risk | Risk per trade as % of balance |
| FixedLots | Fixed lot size (used when LotMode = Fixed) |
| brekoutTF | Breakout reference timeframe (default W1) |
| SL | Initial stop loss in points |
| Buffer | Extra buffer above/below trigger level in points |
| MaTimeframe / MaPeriod | MA trailing stop settings |
| UseTradingHours | Enable session time filter |
| UseTradingDays | Enable weekday filter |
| UseMarketCloseExit | Auto-close before session end |
| MinutesBeforeClose | How many minutes before close to exit |
| UseProfitClose | Enable profit target auto-close |
| ProfitClosePercent | Profit target as % of account balance |
| UseSymbolFilter | Restrict EA to one symbol |
| MaxSpreadPoints | Skip entry if spread exceeds this value |
| MaxDeviationPoints | Maximum slippage tolerance for order execution |
Requirements
- MetaTrader 5
- Broker with market execution (no requotes)
- Minimum recommended balance: $200 (with 1% risk and 0.01 min lot)
- VPS recommended for 24/5 operation
Broker Time
This system is designed for brokers using standard US trading time (GMT+2 / GMT+3)
Notes
- Backtesting recommended on EURUSD M5 with real tick data and variable spread
- The EA uses server time for session filters — verify your broker's GMT offset before going live (tested GMT+2)
- One instance per symbol is recommended
