What's new

New EA Reverser EA - A Advanced Grid-Based Hedging Strategy for MT4

taseeer

Member
Dear Forex Community,

I'm excited to share Reverser, a MetaTrader 4 Expert Advisor (EA) I’ve been working with, designed for traders who are interested in grid-based hedging strategies. This EA aims to capitalize on market volatility by placing buy and sell orders in a structured grid, making it suitable for ranging markets. I’d love to get your feedback, suggestions, or experiences if you decide to test it!What is Reverser EA?Reverser is a grid-based hedging EA that opens simultaneous buy and sell orders at predefined price intervals, using a Fibonacci-like lot size progression. It closes all positions when a collective profit target is reached, making it a market-neutral strategy that doesn’t rely on predicting market direction. Key features include:
  • Hedging Approach: Opens both buy and sell orders to capture profits from price oscillations.
  • Grid System: Places pending buy stop and sell stop orders at fixed intervals (default: 20 pips) up to 14 levels.
  • Fibonacci Lot Sizing: Lot sizes increase progressively (0.01, 0.01, 0.02, ..., 3.77) to recover losses.
  • Profit Target: Closes all trades when the total profit reaches a user-defined amount (default: 27 in account currency).
  • Trailing Stop: Dynamically adjusts stop losses to the best levels among open orders.
  • Spread Filter: Avoids trading in high-spread conditions (default: max 4 pips).
  • ECN/Non-ECN Support: Compatible with both broker types.
Key Parameters
  • LevelDistance: Distance between grid levels (default: 20 pips).
  • StopLoss: Fixed stop loss per order (default: 1000 pips).
  • MoneyTakeProfit: Collective profit target (default: 27).
  • TradeAgainAfterProfit: Option to resume trading after hitting the profit target.
  • Lot Sizes: Configurable for each grid level.
  • MagicNumber: Unique order identifier (default: 100).
How It Works
  1. When no open trades exist and the spread is acceptable, Reverser opens one market buy and one market sell order.
  2. It places up to 14 buy stop and 14 sell stop orders above and below the current price, forming a grid.
  3. As price moves, pending orders are triggered, and the EA monitors the total profit.
  4. When the profit target is reached, all open and pending orders are closed.
  5. A trailing stop adjusts stop losses to minimize losses as more orders are triggered.
Ideal Use CaseReverser works best in ranging markets where price oscillates within a range, allowing it to profit from both directions. It may struggle in strong trending markets due to the increasing lot sizes and large stop losses.Risks to Consider
  • Aggressive Lot Progression: The Fibonacci-like lot sizing (up to 3.77 lots) can lead to significant drawdowns.
  • Large Stop Loss: Default 1000-pip stop loss per order increases risk exposure.
  • Trending Markets: Grid strategies can accumulate losses if the market moves strongly in one direction.
  • Broker Dependency: Performance varies based on spread, slippage, and broker type (ECN/non-ECN).
Recommendations
  • Optimize Parameters: Adjust LevelDistance, StopLoss, MoneyTakeProfit, and lot sizes to suit your risk tolerance.
  • Use a Trend Filter: Consider adding a trend indicator (e.g., moving average) to avoid trading in strong trends.
  • Monitor Margin: The increasing lot sizes require sufficient account equity.
  • Run it on a demo account before going live.
 

Attachments

  • ReverserEA.zip
    31.4 KB · Views: 0

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Users Who Are Viewing This Thread (Total: 1, Members: 0, Guests: 1)

Top