# alexlxy1201/mql5-tradecore-indicators architecture

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

- Interactive diagram: https://gitdiagram.com/alexlxy1201/mql5-tradecore-indicators
- Repository: https://github.com/alexlxy1201/mql5-tradecore-indicators

## Overview

TradeCore is a source-only MetaTrader 5 indicator for detecting and evaluating price-action signals, then presenting them visually with optional alerts. The documented workflow runs from OHLC bars through feature extraction, pattern detection, structure filters, weighted scoring, and multi-timeframe resonance to chart output. The README also documents historical chart drawing and cleanup. No source excerpts were provided, so component paths and relationships below rely on the README; implementation details beyond those documented are omitted.

Main entry points: [`src/TradeCore_Advanced_v20260116.mq5`](https://github.com/alexlxy1201/mql5-tradecore-indicators/blob/main/src/TradeCore_Advanced_v20260116.mq5) (Bar Features)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_analysis["Signal Analysis"]
  node_features["Bar Features"]
  node_patterns["Pattern Detection"]
end

subgraph group_evaluation["Signal Evaluation"]
  node_filters["Structure Filters"]
  node_score["Weighted Score"]
  node_resonance["MTF Resonance"]
end

subgraph group_presentation["Indicator Output"]
  node_output["Chart Objects and Alerts"]
end

node_bars(("OHLC Bars"))

node_bars -->|"extracts features"| node_features
node_features -->|"detects patterns"| node_patterns
node_patterns -->|"applies filters"| node_filters
node_filters -->|"aggregates weights"| node_score
node_score -->|"checks resonance"| node_resonance
node_resonance -->|"presents signals"| node_output

click node_features "https://github.com/alexlxy1201/mql5-tradecore-indicators/blob/main/src/TradeCore_Advanced_v20260116.mq5"
click node_patterns "https://github.com/alexlxy1201/mql5-tradecore-indicators/blob/main/src/TradeCore_Advanced_v20260116.mq5"
click node_filters "https://github.com/alexlxy1201/mql5-tradecore-indicators/blob/main/src/TradeCore_Advanced_v20260116.mq5"
click node_score "https://github.com/alexlxy1201/mql5-tradecore-indicators/blob/main/src/TradeCore_Advanced_v20260116.mq5"
click node_resonance "https://github.com/alexlxy1201/mql5-tradecore-indicators/blob/main/src/TradeCore_Advanced_v20260116.mq5"
click node_output "https://github.com/alexlxy1201/mql5-tradecore-indicators/blob/main/src/TradeCore_Advanced_v20260116.mq5"

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_features,node_patterns toneBlue
class node_filters,node_score,node_resonance toneAmber
class node_output toneMint
class node_bars toneIndigo
```

## Components

### Signal Analysis

- [Bar Features](https://github.com/alexlxy1201/mql5-tradecore-indicators/blob/main/src/TradeCore_Advanced_v20260116.mq5): `src/TradeCore_Advanced_v20260116.mq5`
- [Pattern Detection](https://github.com/alexlxy1201/mql5-tradecore-indicators/blob/main/src/TradeCore_Advanced_v20260116.mq5): `src/TradeCore_Advanced_v20260116.mq5`

### Signal Evaluation

- [Structure Filters](https://github.com/alexlxy1201/mql5-tradecore-indicators/blob/main/src/TradeCore_Advanced_v20260116.mq5): `src/TradeCore_Advanced_v20260116.mq5`
- [Weighted Score](https://github.com/alexlxy1201/mql5-tradecore-indicators/blob/main/src/TradeCore_Advanced_v20260116.mq5): `src/TradeCore_Advanced_v20260116.mq5`
- [MTF Resonance](https://github.com/alexlxy1201/mql5-tradecore-indicators/blob/main/src/TradeCore_Advanced_v20260116.mq5): `src/TradeCore_Advanced_v20260116.mq5`

### Indicator Output

- [Chart Objects and Alerts](https://github.com/alexlxy1201/mql5-tradecore-indicators/blob/main/src/TradeCore_Advanced_v20260116.mq5): `src/TradeCore_Advanced_v20260116.mq5`

### Other components

- **OHLC Bars**

## Connections

- OHLC Bars → Bar Features: extracts features (evidence: `README.md`)
- Bar Features → Pattern Detection: detects patterns (evidence: `README.md`)
- Pattern Detection → Structure Filters: applies filters (evidence: `README.md`)
- Structure Filters → Weighted Score: aggregates weights (evidence: `README.md`)
- Weighted Score → MTF Resonance: checks resonance (evidence: `README.md`)
- MTF Resonance → Chart Objects and Alerts: presents signals (evidence: `README.md`)
