Skip to content
All library documents

MACD Crossover Entries for GBP/CHF

Article MQL5 code base

Summary

This brief document shows part of an adviser’s position-opening logic for GBP/CHF. It compares two MACD-related series on consecutive bars and checks that both are on the same side of zero. When both are positive and the first series crosses above the second, the code requests a buy; when reverse mode is enabled, it requests a sell instead. The excerpt begins a corresponding condition for negative values, but does not include its complete action logic.

The material offers only a fragment of a trading rule. It provides no definitions for the series, full strategy settings, exit or position-sizing rules, transaction-cost assumptions, backtest results, or evidence that the signal has performed well on GBP/CHF. The document says the adviser code is copied from a Dual MACD adviser, apart from the opening algorithm. This is enough to identify a crossover approach with a zero-line filter, but not enough to reproduce or assess a complete trading strategy.

Key ideas

  • The shown buy condition requires both indicator series to be above zero.
  • A bullish signal occurs when the first series crosses above the second between bars.
  • Reverse mode changes the shown bullish signal into a sell request.
  • The excerpt does not provide a complete strategy or performance evidence.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.