# exocharts/exocharts-desktop architecture

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

- Interactive diagram: https://gitdiagram.com/exocharts/exocharts-desktop
- Repository: https://github.com/exocharts/exocharts-desktop

## Overview

This repository is a collection of quantitative-trading research prototypes, not the Exocharts desktop client itself. Its visible runtime component is a fixed-brick Renko processor: it accepts price quotes and optional dates and volumes, updates brick state, and exposes performance metrics and chart rendering. The notebook portfolio covers order-book research, indicators, modeling, sentiment, and strategies, but notebook contents were not sampled; their internal workflows and connections are therefore not inferred.

Main entry points: [`renko.py`](https://github.com/exocharts/exocharts-desktop/blob/main/renko.py) (Brick state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_renko["Renko utility"]
  node_renko_engine["Renko brick engine<br/>[renko.py]"]
  node_renko_state[("Brick state<br/>[renko.py]")]
  node_renko_metrics["Performance metrics<br/>[renko.py]"]
  node_renko_chart["Renko chart<br/>[renko.py]"]
end

subgraph group_orderflow["Order-flow research"]
  node_orderbook_research["Order-book and imbalance studies"]
  node_lob_research["Deep limit-order-book studies"]
  node_microprice_research["Microprice research"]
end

subgraph group_signals["Indicators and signals"]
  node_indicator_research["Indicator studies"]
  node_turning_points["Turning-point studies"]
end

subgraph group_models["Modeling and sentiment"]
  node_ml_research["Machine-learning studies<br/>[GRU.ipynb]"]
  node_sentiment_research["Sentiment studies"]
end

subgraph group_strategies["Trading strategies"]
  node_combined_strategy["Combined strategy research"]
  node_rl_strategy["Reinforcement-learning research"]
end

node_quotes(("Price quotes"))

node_quotes -->|"updates from"| node_renko_engine
node_renko_engine -->|"updates"| node_renko_state
node_renko_metrics -->|"reads"| node_renko_state
node_renko_chart -->|"renders"| node_renko_state

click node_renko_engine "https://github.com/exocharts/exocharts-desktop/blob/main/renko.py"
click node_renko_state "https://github.com/exocharts/exocharts-desktop/blob/main/renko.py"
click node_renko_metrics "https://github.com/exocharts/exocharts-desktop/blob/main/renko.py"
click node_renko_chart "https://github.com/exocharts/exocharts-desktop/blob/main/renko.py"
click node_orderbook_research "https://github.com/exocharts/exocharts-desktop/blob/main/ORDERBOOK-PROBABILITY.ipynb"
click node_lob_research "https://github.com/exocharts/exocharts-desktop/blob/main/DEEP-LOB-INFERENCE.ipynb"
click node_microprice_research "https://github.com/exocharts/exocharts-desktop/blob/main/MICROPRICE-DEVIATIONS.ipynb"
click node_indicator_research "https://github.com/exocharts/exocharts-desktop/blob/main/TRANSFORMERS-REG-INDICATORS.ipynb"
click node_turning_points "https://github.com/exocharts/exocharts-desktop/blob/main/TURNING-POINTS.ipynb"
click node_ml_research "https://github.com/exocharts/exocharts-desktop/blob/main/GRU.ipynb"
click node_sentiment_research "https://github.com/exocharts/exocharts-desktop/blob/main/SENTIMENT-STREAM-DATA.ipynb"
click node_combined_strategy "https://github.com/exocharts/exocharts-desktop/blob/main/COMBINED-STRATEGY.ipynb"
click node_rl_strategy "https://github.com/exocharts/exocharts-desktop/blob/main/RL-INTRO-WITH-FEATURES.ipynb"

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_renko_engine,node_renko_state,node_renko_metrics,node_renko_chart toneBlue
class node_orderbook_research,node_lob_research,node_microprice_research toneAmber
class node_indicator_research,node_turning_points toneMint
class node_ml_research,node_sentiment_research toneRose
class node_combined_strategy,node_rl_strategy,node_quotes toneIndigo
```

## Components

### Renko utility

- [Renko brick engine](https://github.com/exocharts/exocharts-desktop/blob/main/renko.py): `renko.py`
- [Brick state](https://github.com/exocharts/exocharts-desktop/blob/main/renko.py): `renko.py`
- [Performance metrics](https://github.com/exocharts/exocharts-desktop/blob/main/renko.py): `renko.py`
- [Renko chart](https://github.com/exocharts/exocharts-desktop/blob/main/renko.py): `renko.py`

### Order-flow research

- [Order-book and imbalance studies](https://github.com/exocharts/exocharts-desktop/blob/main/ORDERBOOK-PROBABILITY.ipynb): `ORDERBOOK-PROBABILITY.ipynb`
- [Deep limit-order-book studies](https://github.com/exocharts/exocharts-desktop/blob/main/DEEP-LOB-INFERENCE.ipynb): `DEEP-LOB-INFERENCE.ipynb`
- [Microprice research](https://github.com/exocharts/exocharts-desktop/blob/main/MICROPRICE-DEVIATIONS.ipynb): `MICROPRICE-DEVIATIONS.ipynb`

### Indicators and signals

- [Indicator studies](https://github.com/exocharts/exocharts-desktop/blob/main/TRANSFORMERS-REG-INDICATORS.ipynb): `TRANSFORMERS-REG-INDICATORS.ipynb`
- [Turning-point studies](https://github.com/exocharts/exocharts-desktop/blob/main/TURNING-POINTS.ipynb): `TURNING-POINTS.ipynb`

### Modeling and sentiment

- [Machine-learning studies](https://github.com/exocharts/exocharts-desktop/blob/main/GRU.ipynb): `GRU.ipynb`
- [Sentiment studies](https://github.com/exocharts/exocharts-desktop/blob/main/SENTIMENT-STREAM-DATA.ipynb): `SENTIMENT-STREAM-DATA.ipynb`

### Trading strategies

- [Combined strategy research](https://github.com/exocharts/exocharts-desktop/blob/main/COMBINED-STRATEGY.ipynb): `COMBINED-STRATEGY.ipynb`
- [Reinforcement-learning research](https://github.com/exocharts/exocharts-desktop/blob/main/RL-INTRO-WITH-FEATURES.ipynb): `RL-INTRO-WITH-FEATURES.ipynb`

### Other components

- **Price quotes**

## Connections

- Price quotes → Renko brick engine: updates from (evidence: `renko.py`)
- Renko brick engine → Brick state: updates (evidence: `renko.py`)
- Performance metrics → Brick state: reads (evidence: `renko.py`)
- Renko chart → Brick state: renders (evidence: `renko.py`)
