Fan Grid Cycle EA
- Experts
- Version: 1.1
- Activations: 5
Fan Grid Cycle EA is a grid-cycle Expert Advisor for MetaTrader 5. It detects a "fan" structure on the chart, opens independent BUY and SELL grid cycles, and closes each cycle as a basket when its target profit is reached.
How it works
1. Fan signal. The EA scans swing pivots on a selectable timeframe. A series of consecutive rising swing lows forms an UP fan; a series of consecutive falling swing highs forms a DOWN fan. A cycle starts only when the fan has enough points and its slope angle exceeds the minimum angle you set.
2. Grid cycle. After the first order, additional orders are added at a fixed distance in points. You can add against the move (buy lower, sell higher) or with the trend. Lot size grows by level according to your settings and is capped by a maximum lot.
3. Basket take-profit. Each side (BUY and SELL) is managed as its own basket. The profit target depends on the number of open orders (1-29, 30-60, 61+). When reached, all orders of that side close together.
4. Protection. A floating-loss limit closes everything and blocks new cycles. Spread, margin level, news and market-session filters stop new orders when conditions are unsuitable.
Key features
• Independent BUY and SELL systems, or BUY only / SELL only
• Swing-pivot fan signal with adjustable pivot strength, minimum fan count and slope angle
• Fixed-distance grid with optional lot growth per level, maximum lot and maximum order count
• Basket take-profit in account currency, with three tiers by order count
• Floating-loss protection in account currency
• Maximum spread, maximum slippage and minimum margin level checks
• High-impact news filter based on the built-in MetaTrader economic calendar (live terminal only)
• Session filter: no new orders shortly before market close or right after open
• On-chart information panel and control buttons: Close All, Close Buy, Close Sell, Balance Lock, Start/Unlock
• Input parameters are shown in clearly labelled groups
Requirements
• MetaTrader 5 hedging account (BUY and SELL positions held at the same time). Netting accounts are not supported.
• Low-spread broker recommended. Gold and other volatile symbols may need larger grid distances.
• VPS recommended for continuous operation.
• Allow automated trading. For the news filter, the economic calendar must be available in the terminal.
Control buttons
• Close All / Close Buy / Close Sell: close the positions of that side and block new cycles on it until Start/Unlock is pressed.
• Balance Lock: stops opening any new orders. Existing baskets still close at their take-profit.
• Start/Unlock: clears all blocks and locks and resumes normal operation.
Important notes
• The news filter uses the terminal economic calendar and is inactive in the Strategy Tester.
• Backtest results depend on tick data quality, spread and broker conditions. [Add your own tested symbol, period, modelling and settings here.]
• Past or simulated results do not indicate future performance.
Risk warning
This EA uses a grid strategy with increasing lot sizes, which is similar to martingale-style position sizing. Several positions can be open on the same side at the same time, and a strong one-directional move can create large floating losses and high margin usage. A basket take-profit is small compared with the maximum possible drawdown. No settings can eliminate this risk. Trading leveraged products carries a high risk of loss, and you may lose more than your initial deposit. Use only risk capital, start on a demo account, use small lot sizes, and keep the floating-loss limit and maximum order count at levels you can afford. This product does not guarantee profit.
What's new
1.00 – Initial release.
