# geraked/metatrader5 architecture

> Architecture diagram of the GitHub repository geraked/metatrader5, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/geraked/metatrader5
- Repository: https://github.com/geraked/metatrader5

## Overview

This repository provides MetaTrader 5 Expert Advisors (EAs): users select a strategy and run it in MT5, with backtesting recommended before live trading. The README documents strategy-to-indicator relationships for several EAs; those links are shown, but source excerpts were unavailable, so undocumented runtime calls and execution details are omitted. Other EA and indicator files appear in the tree, but their individual behavior is not established by the supplied evidence.

Main entry points: [`Experts/CEZLSMA.mq5`](https://github.com/geraked/metatrader5/blob/master/Experts/CEZLSMA.mq5) (CEZLSMA EA), [`Experts/DHLAOS.mq5`](https://github.com/geraked/metatrader5/blob/master/Experts/DHLAOS.mq5) (DHLAOS EA), [`Experts/AFAOSMD.mq5`](https://github.com/geraked/metatrader5/blob/master/Experts/AFAOSMD.mq5) (AFAOSMD EA), [`Experts/NWERSIASF.mq5`](https://github.com/geraked/metatrader5/blob/master/Experts/NWERSIASF.mq5) (NWERSIASF EA)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_strategies["Trading strategies"]
  node_ea_cezlsma["CEZLSMA EA<br/>[CEZLSMA.mq5]"]
  node_ea_3maf["3MAF EA<br/>[3MAF.mq5]"]
  node_ea_bbrsi["BBRSI EA<br/>[BBRSI.mq5]"]
  node_ea_dhlaos["DHLAOS EA<br/>[DHLAOS.mq5]"]
  node_ea_3macd["3MACD EA<br/>[3MACD.mq5]"]
  node_ea_2macdsto["2MACDSTO EA<br/>[2MACDSTO.mq5]"]
  node_ea_2maaos["2MAAOS EA<br/>[2MAAOS.mq5]"]
  node_ea_afaosmd["AFAOSMD EA<br/>[AFAOSMD.mq5]"]
  node_ea_nwersiasf["NWERSIASF EA<br/>[NWERSIASF.mq5]"]
  node_ea_lrcutb["LRCUTB EA<br/>[LRCUTB.mq5]"]
  node_ea_cot1["COT1 EA<br/>[COT1.mq5]"]
  node_ea_other["Other EAs"]
end

subgraph group_indicators["Technical indicators"]
  node_ind_chandelier["Chandelier Exit<br/>[ChandelierExit.mq5]"]
  node_ind_zlsma["ZLSMA<br/>[ZLSMA.mq5]"]
  node_ind_daily["Daily High/Low<br/>[DailyHighLow.mq5]"]
  node_ind_andean["Andean Oscillator"]
  node_ind_force["Average Force<br/>[AverageForce.mq5]"]
  node_ind_nw["Nadaraya-Watson Envelope"]
  node_ind_atr["ATR Stop Finder<br/>[AtrSlFinder.mq5]"]
  node_ind_lrc["Linear Regression Candles"]
  node_ind_ut["UT Bot Alerts<br/>[UTBot.mq5]"]
  node_ind_supertrend["Super Trend<br/>[SuperTrend.mq5]"]
end

subgraph group_data["Market data"]
  node_market["Market data"]
  node_cot_data["COT data helper<br/>[Cot.mqh]"]
end

node_user(("Trader"))
node_mt5["MetaTrader 5"]

node_user -->|"uses platform"| node_mt5
node_mt5 -->|"runs EA"| node_ea_cezlsma
node_mt5 -->|"runs EA"| node_ea_3maf
node_mt5 -->|"runs EA"| node_ea_bbrsi
node_mt5 -->|"runs EA"| node_ea_dhlaos
node_mt5 -->|"runs EA"| node_ea_3macd
node_mt5 -->|"runs EA"| node_ea_2macdsto
node_mt5 -->|"runs EA"| node_ea_2maaos
node_mt5 -->|"runs EA"| node_ea_afaosmd
node_mt5 -->|"runs EA"| node_ea_nwersiasf
node_mt5 -->|"runs EA"| node_ea_lrcutb
node_mt5 -->|"runs EA"| node_ea_cot1
node_ea_cezlsma -->|"uses indicator"| node_ind_chandelier
node_ea_cezlsma -->|"uses indicator"| node_ind_zlsma
node_ea_3maf -->|"uses price data"| node_market
node_ea_bbrsi -->|"uses price data"| node_market
node_ea_dhlaos -->|"uses indicator"| node_ind_daily
node_ea_dhlaos -->|"uses indicator"| node_ind_andean
node_ea_3macd -->|"uses price data"| node_market
node_ea_2macdsto -->|"uses price data"| node_market
node_ea_2maaos -->|"uses indicator"| node_ind_andean
node_ea_afaosmd -->|"uses indicator"| node_ind_force
node_ea_afaosmd -->|"uses indicator"| node_ind_andean
node_ea_nwersiasf -->|"uses indicator"| node_ind_nw
node_ea_nwersiasf -->|"uses indicator"| node_ind_atr
node_ea_lrcutb -->|"uses indicator"| node_ind_lrc
node_ea_lrcutb -->|"uses indicator"| node_ind_ut
node_ea_cot1 -->|"uses data"| node_cot_data
node_ea_cot1 -->|"uses indicator"| node_ind_supertrend

click node_ea_cezlsma "https://github.com/geraked/metatrader5/blob/master/Experts/CEZLSMA.mq5"
click node_ea_3maf "https://github.com/geraked/metatrader5/blob/master/Experts/3MAF.mq5"
click node_ea_bbrsi "https://github.com/geraked/metatrader5/blob/master/Experts/BBRSI.mq5"
click node_ea_dhlaos "https://github.com/geraked/metatrader5/blob/master/Experts/DHLAOS.mq5"
click node_ea_3macd "https://github.com/geraked/metatrader5/blob/master/Experts/3MACD.mq5"
click node_ea_2macdsto "https://github.com/geraked/metatrader5/blob/master/Experts/2MACDSTO.mq5"
click node_ea_2maaos "https://github.com/geraked/metatrader5/blob/master/Experts/2MAAOS.mq5"
click node_ea_afaosmd "https://github.com/geraked/metatrader5/blob/master/Experts/AFAOSMD.mq5"
click node_ea_nwersiasf "https://github.com/geraked/metatrader5/blob/master/Experts/NWERSIASF.mq5"
click node_ea_lrcutb "https://github.com/geraked/metatrader5/blob/master/Experts/LRCUTB.mq5"
click node_ea_cot1 "https://github.com/geraked/metatrader5/blob/master/Experts/COT1.mq5"
click node_ea_other "https://github.com/geraked/metatrader5/tree/master/Experts"
click node_ind_chandelier "https://github.com/geraked/metatrader5/blob/master/Indicators/ChandelierExit.mq5"
click node_ind_zlsma "https://github.com/geraked/metatrader5/blob/master/Indicators/ZLSMA.mq5"
click node_ind_daily "https://github.com/geraked/metatrader5/blob/master/Indicators/DailyHighLow.mq5"
click node_ind_andean "https://github.com/geraked/metatrader5/blob/master/Indicators/AndeanOscillator.mq5"
click node_ind_force "https://github.com/geraked/metatrader5/blob/master/Indicators/AverageForce.mq5"
click node_ind_nw "https://github.com/geraked/metatrader5/blob/master/Indicators/NadarayaWatsonEnvelope.mq5"
click node_ind_atr "https://github.com/geraked/metatrader5/blob/master/Indicators/AtrSlFinder.mq5"
click node_ind_lrc "https://github.com/geraked/metatrader5/blob/master/Indicators/LinearRegressionCandles.mq5"
click node_ind_ut "https://github.com/geraked/metatrader5/blob/master/Indicators/UTBot.mq5"
click node_ind_supertrend "https://github.com/geraked/metatrader5/blob/master/Indicators/SuperTrend.mq5"
click node_cot_data "https://github.com/geraked/metatrader5/blob/master/Include/Cot.mqh"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ea_cezlsma,node_ea_3maf,node_ea_bbrsi,node_ea_dhlaos,node_ea_3macd,node_ea_2macdsto,node_ea_2maaos,node_ea_afaosmd,node_ea_nwersiasf,node_ea_lrcutb,node_ea_cot1,node_ea_other toneBlue
class node_ind_chandelier,node_ind_zlsma,node_ind_daily,node_ind_andean,node_ind_force,node_ind_nw,node_ind_atr,node_ind_lrc,node_ind_ut,node_ind_supertrend toneAmber
class node_market,node_cot_data toneMint
class node_user,node_mt5 toneIndigo
```

## Components

### Trading strategies

- [CEZLSMA EA](https://github.com/geraked/metatrader5/blob/master/Experts/CEZLSMA.mq5): `Experts/CEZLSMA.mq5`
- [3MAF EA](https://github.com/geraked/metatrader5/blob/master/Experts/3MAF.mq5): `Experts/3MAF.mq5`
- [BBRSI EA](https://github.com/geraked/metatrader5/blob/master/Experts/BBRSI.mq5): `Experts/BBRSI.mq5`
- [DHLAOS EA](https://github.com/geraked/metatrader5/blob/master/Experts/DHLAOS.mq5): `Experts/DHLAOS.mq5`
- [3MACD EA](https://github.com/geraked/metatrader5/blob/master/Experts/3MACD.mq5): `Experts/3MACD.mq5`
- [2MACDSTO EA](https://github.com/geraked/metatrader5/blob/master/Experts/2MACDSTO.mq5): `Experts/2MACDSTO.mq5`
- [2MAAOS EA](https://github.com/geraked/metatrader5/blob/master/Experts/2MAAOS.mq5): `Experts/2MAAOS.mq5`
- [AFAOSMD EA](https://github.com/geraked/metatrader5/blob/master/Experts/AFAOSMD.mq5): `Experts/AFAOSMD.mq5`
- [NWERSIASF EA](https://github.com/geraked/metatrader5/blob/master/Experts/NWERSIASF.mq5): `Experts/NWERSIASF.mq5`
- [LRCUTB EA](https://github.com/geraked/metatrader5/blob/master/Experts/LRCUTB.mq5): `Experts/LRCUTB.mq5`
- [COT1 EA](https://github.com/geraked/metatrader5/blob/master/Experts/COT1.mq5): `Experts/COT1.mq5`
- [Other EAs](https://github.com/geraked/metatrader5/tree/master/Experts): `Experts`

### Technical indicators

- [Chandelier Exit](https://github.com/geraked/metatrader5/blob/master/Indicators/ChandelierExit.mq5): `Indicators/ChandelierExit.mq5`
- [ZLSMA](https://github.com/geraked/metatrader5/blob/master/Indicators/ZLSMA.mq5): `Indicators/ZLSMA.mq5`
- [Daily High/Low](https://github.com/geraked/metatrader5/blob/master/Indicators/DailyHighLow.mq5): `Indicators/DailyHighLow.mq5`
- [Andean Oscillator](https://github.com/geraked/metatrader5/blob/master/Indicators/AndeanOscillator.mq5): `Indicators/AndeanOscillator.mq5`
- [Average Force](https://github.com/geraked/metatrader5/blob/master/Indicators/AverageForce.mq5): `Indicators/AverageForce.mq5`
- [Nadaraya-Watson Envelope](https://github.com/geraked/metatrader5/blob/master/Indicators/NadarayaWatsonEnvelope.mq5): `Indicators/NadarayaWatsonEnvelope.mq5`
- [ATR Stop Finder](https://github.com/geraked/metatrader5/blob/master/Indicators/AtrSlFinder.mq5): `Indicators/AtrSlFinder.mq5`
- [Linear Regression Candles](https://github.com/geraked/metatrader5/blob/master/Indicators/LinearRegressionCandles.mq5): `Indicators/LinearRegressionCandles.mq5`
- [UT Bot Alerts](https://github.com/geraked/metatrader5/blob/master/Indicators/UTBot.mq5): `Indicators/UTBot.mq5`
- [Super Trend](https://github.com/geraked/metatrader5/blob/master/Indicators/SuperTrend.mq5): `Indicators/SuperTrend.mq5`

### Market data

- **Market data**
- [COT data helper](https://github.com/geraked/metatrader5/blob/master/Include/Cot.mqh): `Include/Cot.mqh`

### Other components

- **Trader**
- **MetaTrader 5**

## Connections

- Trader → MetaTrader 5: uses platform (evidence: `README.md`)
- MetaTrader 5 → CEZLSMA EA: runs EA (evidence: `README.md`)
- MetaTrader 5 → 3MAF EA: runs EA (evidence: `README.md`)
- MetaTrader 5 → BBRSI EA: runs EA (evidence: `README.md`)
- MetaTrader 5 → DHLAOS EA: runs EA (evidence: `README.md`)
- MetaTrader 5 → 3MACD EA: runs EA (evidence: `README.md`)
- MetaTrader 5 → 2MACDSTO EA: runs EA (evidence: `README.md`)
- MetaTrader 5 → 2MAAOS EA: runs EA (evidence: `README.md`)
- MetaTrader 5 → AFAOSMD EA: runs EA (evidence: `README.md`)
- MetaTrader 5 → NWERSIASF EA: runs EA (evidence: `README.md`)
- MetaTrader 5 → LRCUTB EA: runs EA (evidence: `README.md`)
- MetaTrader 5 → COT1 EA: runs EA (evidence: `README.md`)
- CEZLSMA EA → Chandelier Exit: uses indicator (evidence: `README.md`)
- CEZLSMA EA → ZLSMA: uses indicator (evidence: `README.md`)
- 3MAF EA → Market data: uses price data (evidence: `README.md`)
- BBRSI EA → Market data: uses price data (evidence: `README.md`)
- DHLAOS EA → Daily High/Low: uses indicator (evidence: `README.md`)
- DHLAOS EA → Andean Oscillator: uses indicator (evidence: `README.md`)
- 3MACD EA → Market data: uses price data (evidence: `README.md`)
- 2MACDSTO EA → Market data: uses price data (evidence: `README.md`)
- 2MAAOS EA → Andean Oscillator: uses indicator (evidence: `README.md`)
- AFAOSMD EA → Average Force: uses indicator (evidence: `README.md`)
- AFAOSMD EA → Andean Oscillator: uses indicator (evidence: `README.md`)
- NWERSIASF EA → Nadaraya-Watson Envelope: uses indicator (evidence: `README.md`)
- NWERSIASF EA → ATR Stop Finder: uses indicator (evidence: `README.md`)
- LRCUTB EA → Linear Regression Candles: uses indicator (evidence: `README.md`)
- LRCUTB EA → UT Bot Alerts: uses indicator (evidence: `README.md`)
- COT1 EA → COT data helper: uses data (evidence: `README.md`)
- COT1 EA → Super Trend: uses indicator (evidence: `README.md`)
