Skip to content
All library documents

Multicurrency Overlay Hedging with Correlation and ATR Ratios

Article MQL5 code base

Summary

This Expert Advisor describes a framework for overlay hedging across currency pairs listed in the trading platform’s Market Watch. It calculates correlations between symbols and Average True Range ratios for possible hedge combinations, assigning distinct identifiers to those combinations. The correlation and volatility statistics are recalculated daily, and the advisor can manage multiple pairs from one chart without depending on ticks from a particular symbol. Its overlay threshold is based on an indicator referenced by the document.

The listed settings include the lookback periods and timeframes for correlation and ATR, profit targets measured in points or dollars, retry attempts for closing orders, and limits for open orders and spread. The document explains the EA’s structure and controls, but provides no correlation thresholds, hedge selection rules, performance evidence, or risk results. Correlation and volatility estimates can change, so the description alone does not establish that the resulting hedges will remain effective.

Key ideas

  • The advisor evaluates currency-pair correlations and ATR ratios to form overlay hedge combinations.
  • It refreshes correlation and volatility statistics daily and gives each combination a distinct identifier.
  • It can manage multiple Market Watch pairs from a single chart without relying on one symbol's ticks.
  • User settings control measurement periods, profit targets, order limits, retries, and maximum spread.
  • The document provides no performance results or detailed rules for selecting hedge combinations.

Tags

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