# mulkymalikuldhrs/quant-nanggroe-ai architecture

> Architecture diagram of the GitHub repository mulkymalikuldhrs/quant-nanggroe-ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mulkymalikuldhrs/quant-nanggroe-ai
- Repository: https://github.com/mulkymalikuldhrs/quant-nanggroe-ai

## Overview

Quant Nanggroe AI is an autonomous quantitative trading platform. Its documented live workflow gathers market and causal context, produces strategy signals, applies committee and risk decisions, executes through a broker, then evaluates trading outcomes. Separate capabilities include backtesting, strategy evolution, API access, and a multi-page dashboard. Some README-named runtime modules are absent from the supplied tree, so those responsibilities are represented by their existing enclosing directories; links between runtime stages rely on the README’s architecture description.

Main entry points: [`quant_nanggroe/engine/agentic/autonomous.py`](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/engine/agentic/autonomous.py) (Autonomous Pipeline), [`quant_nanggroe/engine/execution/builder.py`](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/engine/execution/builder.py) (Order Execution), [`quant_nanggroe/connectors/mt5_broker.py`](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/connectors/mt5_broker.py) (MT5 Broker), [`quant_nanggroe/database/models.py`](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/database/models.py) (Trade Records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_market["Market Analysis"]
  node_market_data["Market Data<br/>[manager.py]"]
  node_causal["Causal Analysis"]
  node_strategies["Strategy Signals"]
end

subgraph group_decision["Trading Decisions"]
  node_autonomous["Autonomous Pipeline<br/>[autonomous.py]"]
  node_committee["Committee Vote"]
  node_risk["Risk Gate<br/>[manager.py]"]
end

subgraph group_operations["Execution Operations"]
  node_execution["Order Execution<br/>[builder.py]"]
  node_broker["MT5 Broker<br/>[mt5_broker.py]"]
  node_trade_state[("Trade Records<br/>[models.py]")]
end

subgraph group_learning["Evaluation &amp; Research"]
  node_evaluator["Strategy Evaluator"]
  node_evolution["Auto Retraining"]
  node_backtest["Backtesting<br/>[engine.py]"]
end

subgraph group_interfaces["User Interfaces"]
  node_api["FastAPI Service<br/>[app.py]"]
  node_dashboard["Dashboard"]
  node_telegram["Telegram Channel<br/>[telegram.py]"]
end

node_operator(("Operator"))

node_operator -->|"starts daemon"| node_autonomous
node_market_data -->|"supplies data"| node_autonomous
node_causal -->|"adds context"| node_autonomous
node_strategies -->|"provides signals"| node_autonomous
node_autonomous -->|"requests vote"| node_committee
node_autonomous -->|"checks risk"| node_risk
node_autonomous -->|"submits orders"| node_execution
node_execution -->|"routes orders"| node_broker
node_broker -->|"records deals"| node_trade_state
node_trade_state -->|"feeds outcomes"| node_evaluator
node_evaluator -->|"guides tuning"| node_evolution
node_operator -->|"runs research"| node_backtest
node_operator -->|"uses service"| node_api
node_api -->|"serves dashboard"| node_dashboard
node_autonomous -->|"sends notices"| node_telegram

click node_market_data "https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/data/manager.py"
click node_causal "https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/tree/master/quant_nanggroe/engine/causal"
click node_strategies "https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/hedge_fund/signals/engine_strategies.py"
click node_autonomous "https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/engine/agentic/autonomous.py"
click node_committee "https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/tree/master/quant_nanggroe/engine/agentic/committee"
click node_risk "https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/engine/risk/manager.py"
click node_execution "https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/engine/execution/builder.py"
click node_broker "https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/connectors/mt5_broker.py"
click node_trade_state "https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/database/models.py"
click node_evaluator "https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/engine/agentic/strategy_evaluator.py"
click node_evolution "https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/tree/master/quant_nanggroe/engine"
click node_backtest "https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/engine/backtest/engine.py"
click node_api "https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/api/app.py"
click node_dashboard "https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/tree/master/dashboard/src/app"
click node_telegram "https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/channels/telegram.py"

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_market_data,node_causal,node_strategies toneBlue
class node_autonomous,node_committee,node_risk toneAmber
class node_execution,node_broker,node_trade_state toneMint
class node_evaluator,node_evolution,node_backtest toneRose
class node_api,node_dashboard,node_telegram,node_operator toneIndigo
```

## Components

### Market Analysis

- [Market Data](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/data/manager.py): `quant_nanggroe/data/manager.py`
- [Causal Analysis](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/tree/master/quant_nanggroe/engine/causal): `quant_nanggroe/engine/causal`
- [Strategy Signals](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/hedge_fund/signals/engine_strategies.py): `quant_nanggroe/hedge_fund/signals/engine_strategies.py`

### Trading Decisions

- [Autonomous Pipeline](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/engine/agentic/autonomous.py): `quant_nanggroe/engine/agentic/autonomous.py`
- [Committee Vote](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/tree/master/quant_nanggroe/engine/agentic/committee): `quant_nanggroe/engine/agentic/committee`
- [Risk Gate](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/engine/risk/manager.py): `quant_nanggroe/engine/risk/manager.py`

### Execution Operations

- [Order Execution](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/engine/execution/builder.py): `quant_nanggroe/engine/execution/builder.py`
- [MT5 Broker](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/connectors/mt5_broker.py): `quant_nanggroe/connectors/mt5_broker.py`
- [Trade Records](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/database/models.py): `quant_nanggroe/database/models.py`

### Evaluation & Research

- [Strategy Evaluator](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/engine/agentic/strategy_evaluator.py): `quant_nanggroe/engine/agentic/strategy_evaluator.py`
- [Auto Retraining](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/tree/master/quant_nanggroe/engine): `quant_nanggroe/engine`
- [Backtesting](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/engine/backtest/engine.py): `quant_nanggroe/engine/backtest/engine.py`

### User Interfaces

- [FastAPI Service](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/api/app.py): `quant_nanggroe/api/app.py`
- [Dashboard](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/tree/master/dashboard/src/app): `dashboard/src/app`
- [Telegram Channel](https://github.com/mulkymalikuldhrs/quant-nanggroe-ai/blob/master/quant_nanggroe/channels/telegram.py): `quant_nanggroe/channels/telegram.py`

### Other components

- **Operator**

## Connections

- Operator → Autonomous Pipeline: starts daemon
- Market Data → Autonomous Pipeline: supplies data
- Causal Analysis → Autonomous Pipeline: adds context
- Strategy Signals → Autonomous Pipeline: provides signals
- Autonomous Pipeline → Committee Vote: requests vote
- Autonomous Pipeline → Risk Gate: checks risk
- Autonomous Pipeline → Order Execution: submits orders
- Order Execution → MT5 Broker: routes orders (evidence: `quant_nanggroe/engine/execution/builder.py`)
- MT5 Broker → Trade Records: records deals
- Trade Records → Strategy Evaluator: feeds outcomes
- Strategy Evaluator → Auto Retraining: guides tuning
- Operator → Backtesting: runs research
- Operator → FastAPI Service: uses service
- FastAPI Service → Dashboard: serves dashboard
- Autonomous Pipeline → Telegram Channel: sends notices
