Fugu Flash

Overview

Fugu Flash is a grid-based trading Expert Advisor (EA) for MetaTrader 5 that uses a Moving Average indicator to determine trade direction. The system opens positions in a grid pattern when price moves away from the moving average, with all positions sharing a common take profit target.

Key Features

  • Grid Trading System: Opens multiple positions at predetermined price intervals
  • Moving Average Strategy: Uses MA to determine initial trade direction
  • Shared Take Profit: All grid positions close at a single calculated target
  • Martingale Position Sizing: Optional exponential volume growth
  • Time-Based Trading: Configurable trading windows and day filters
  • State Recovery: Automatically reconstructs grid state after MT5 restarts
  • Direction Filtering: Trade long only, short only, or both directions

Installation

  1. Copy the entire Fugu Flash folder to your MT5 Experts directory:[MT5 Data Folder]/MQL5/Experts/Fugu/Fugu Flash/
  2. Attach Fugu Flash.ex5 to your chart

Input Parameters

Trading Direction

  • Trading Direction: Choose to trade BUY only, SELL only, or BOTH directions
    • TRADING_DIRECTION_BOTH: Allow both long and short trades
    • TRADING_DIRECTION_BUY: Only long trades
    • TRADING_DIRECTION_SELL: Only short trades

Time Settings

  • Start Time (HH:MM): Trading window start time (server time)
  • End Time (HH:MM): Trading window end time (server time). Set same as start time for 24-hour trading
  • Trade Monday-Sunday: Enable/disable trading on specific days

Grid Settings

  • Grid Distance (pps): Price interval between grid trades in pips
  • Profit Target (pps): Target profit per trade in pips
  • Maximum Trades: Maximum number of positions in the grid (default: 5)

Moving Average Settings

  • MA Period: Moving average period (default: 20)
  • MA Method: Calculation method (SMA, EMA, SMMA, LWMA)
  • MA Applied Price: Price type for calculation (Close, Open, High, Low, etc.)

Position Sizing

  • Order Size: Base lot size for initial trades (default: 0.01)

Martingale Settings

  • Volume Growth Factor: Multiplier for position size growth (default: 0.0)
  • Maximum Volume: Maximum lot size limit (default: 0.1)

General Settings

  • Magic Number: Unique identifier for trades (default: 2606030)
  • Trade Comment: Comment attached to orders (default: “Fugu Flash”)

Important Considerations

  • Grid trading systems can accumulate significant drawdown during strong trends
  • Maximum Trades limits the total number of positions
  • Maximum Volume caps position sizing
  • Time windows can avoid high-volatility periods
  • Consider your account balance and risk tolerance before configuring

Recommended Settings

  • Start with conservative grid distance (10-20 pips)
  • Use reasonable maximum trades (3-5)
  • Enable Martingale only with sufficient account balance
  • Test thoroughly on demo accounts before live trading

State Recovery

The EA automatically reconstructs its grid state after:

  • MT5 terminal restart
  • EA removal and re-attachment
  • VPS reboot

This ensures:

  • Existing positions are recognized
  • Take profit levels are recalculated
  • Trading logic continues seamlessly

Troubleshooting

EA Not Trading

  • Check trading time window and day settings
  • Verify symbol has no trading restrictions
  • Ensure sufficient margin for positions
  • Check EA is allowed to trade (AutoTrading button)

Positions Not Closing

  • Verify take profit levels are set
  • Check for slippage or spread issues
  • Ensure broker allows take profit at specified distance

Invalid Parameter Errors

  • Verify time format is HH:MM (24-hour format)
  • Check magic number is within valid range (1-999999999)
  • Ensure MA period is positive

Technical Support

For support and updates:


Disclaimer

Trading foreign exchange and CFDs carries a high level of risk and may not be suitable for all investors. Past performance is not indicative of future results. This EA is provided as-is without warranty. Users are responsible for their own trading decisions and risk management.


Best Practices

  1. Backtesting: Always test on historical data before live trading
  2. Demo Testing: Run on demo account to verify live performance
  3. Monitor Drawdown: Watch account equity during trending markets
  4. Adjust Settings: Fine-tune parameters based on market conditions
  5. Keep Logs: Monitor MT5 Experts log for errors and warnings
  6. Regular Backups: Save your parameter configurations

License

Copyright 2017-2026, OrchardForex.com. All rights reserved.

Scroll to Top