CME Margin Zones Trend EA

  • Experts
  • Askhat Omarkhanov
    Askhat Omarkhanov
    MQL5 / Python Разработчик
    Разрабатываю и дорабатываю торговые системы для MetaTrader 4 и MetaTrader 5. Специализируюсь на небольших задачах, быстрых исправлениях и доработке функционала.
    Мои навыки:
    • Создание и модификация Советников (Expert Advisors) для MT4 / MT5
  • Version: 10.60
  • Activations: 5

Hello fellow traders! I am pleased to present my fully automated trading robot, CME Margin Zones Trend EA, designed specifically for trading Gold (XAUUSD) on the MetaTrader 5 platform.

Its operation is based on the classic mathematical model of margin zones from the CME exchange. The main difference between my advisor and standard "blind" grid systems is that it trades strictly in the direction of the institutional trend. The trend direction is determined by how candles close relative to the key 1/2 zone. If the trend is bullish, the robot only buys. If it is bearish, it only sells. This completely eliminates dangerous entries against the market.

There is an extremely important point that you need to keep in mind: CME margin requirements change constantly depending on market volatility. For the robot to work accurately, you must enter and update the MarginPoints value manually in the settings. I strongly recommend checking the current gold margin on the official CME website every 2-3 days, rather than once a month. This takes only a couple of minutes but ensures your zones on the chart perfectly align with the levels used by major banks and hedge funds.

Key advantages of the algorithm:

First, it features a strict trend filter. There is no dangerous averaging against the market.

Second, the zones are built dynamically. As price extremes are updated, the levels automatically rebuild to follow the price.

Third, there is built-in protection against repeat entries. The robot will not spam you with trades at the same spot; if a zone has already been traded, re-entry is blocked until a new extreme is formed or the trend changes.

Fourth, the robot uses professional trade management:

  • Cascade exit: the position is closed in parts at 25%, 50%, and 75% of the margin movement targets.

  • Three-stage break-even: as profits grow, the stop loss is automatically moved to a safe zone.

  • Basket profit close: the EA monitors the overall account equity and closes the entire cycle once the target percentage profit is reached.

Recommended settings where the EA shows the best results:
Trading instrument: XAUUSD (Gold).
Timeframe: M15.
Recommended leverage: 1:2000.
Starting deposit: from 10,000 USD for a 0.15 base lot size (or from 1,000 USD on a cent account).

Description of key settings:
MarginPoints — current margin in points (please check and update manually on the CME website every 2-3 days).
InitialLookback — history depth in bars for finding starting bases.
BaseLotSize — base lot size (default is set to 0.15).
ProfitBasketPercent — target basket profit in percent to close the cycle (default is set to 7.0%).
UseStopLoss — enables the protective stop loss.
SL_ZoneWidthMult — zone width multiplier for calculating stop-loss distance.
SL_MinPoints and SL_MaxPoints — limits for the minimum and maximum stop-loss in points.
UseBreakEven — enables automatic break-even trailing.
UsePartialClose — enables cascade partial profit-taking.

Risk Warning: Financial market trading involves high risks. Please test the EA on a demo account before running it with real money. Past performance does not guarantee future results.


Filter:
No reviews
Reply to review