# nagaraj556534/quotex_trading architecture

> Architecture diagram of the GitHub repository nagaraj556534/quotex_trading, 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/nagaraj556534/quotex_trading
- Repository: https://github.com/nagaraj556534/quotex_trading

## Overview

Quotex Trading Bot automates trading on Quotex, with Telegram and webhook signals alongside locally implemented strategies. The principal workflow enters through the application or a signal receiver, evaluates market data and strategy rules, then can submit trades through the Quotex client. Strategy 12 has a distinct research workflow for candle-based pattern mining, rule search, and backtesting, as well as deployment; the AI strategy package adds feature analysis, scoring, and quality gates. The README gives only a brief product description, so several connections are grounded in the source index rather than inspected call sites.

Main entry points: [`app/main.py`](https://github.com/nagaraj556534/quotex_trading/blob/main/app/main.py) (Application runtime), [`app/strategy12/features.py`](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy12/features.py) (Market data features), [`app/strategy12/pipeline.py`](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy12/pipeline.py) (Pattern and rule pipeline), [`app/strategy14_ai/live_analyzer.py`](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy14_ai/live_analyzer.py) (Live analyzer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Trading runtime"]
  node_main["Application runtime<br/>[main.py]"]
  node_telegram_reader["Telegram signal reader"]
  node_telegram_live["Live Telegram signals"]
  node_webhook["Webhook receiver<br/>[webhook_server.py]"]
end

subgraph group_strategies["Strategy engines"]
  node_strategy10["Confluence strategy"]
  node_strategy15["Strategy 15<br/>[strategy15.py]"]
  node_strategy20["Strategy 20<br/>[strategy20.py]"]
  node_strategy33["Strategy 33<br/>[strategy33.py]"]
  node_strategy37["Strategy 37<br/>[strategy37.py]"]
  node_strategy38["Strategy 38<br/>[strategy38.py]"]
  node_strategy41["Strategy 41<br/>[strategy41.py]"]
  node_strategy_ai["AI strategy<br/>[strategy_ai.py]"]
end

subgraph group_s12["Strategy 12"]
  node_s12_pipeline["Pattern and rule pipeline<br/>[pipeline.py]"]
  node_s12_data["Market data features<br/>[features.py]"]
  node_s12_rules["Rule evaluation<br/>[rules.py]"]
  node_s12_search["Rule search<br/>[search.py]"]
  node_s12_backtest["Backtesting<br/>[backtest.py]"]
  node_s12_deploy["Strategy deployment<br/>[deploy.py]"]
end

subgraph group_ai["AI analysis"]
  node_ai_deploy["AI deployment<br/>[deploy.py]"]
  node_ai_analyzer["Live analyzer<br/>[live_analyzer.py]"]
  node_ai_features["Feature engine<br/>[feature_engine.py]"]
  node_ai_rules["Rule-based scorer<br/>[rule_based.py]"]
  node_ai_ml["ML scorer<br/>[ml_model.py]"]
  node_ai_gates["Quality gates<br/>[quality_gates.py]"]
end

node_operator(("Bot operator"))
node_quotex{{"Quotex platform"}}

node_operator -.->|"starts"| node_main
node_main -->|"dispatches"| node_strategy15
node_main -->|"dispatches"| node_strategy20
node_main -->|"dispatches"| node_strategy33
node_main -->|"dispatches"| node_strategy37
node_main -->|"dispatches"| node_strategy38
node_main -->|"dispatches"| node_strategy41
node_main -->|"dispatches"| node_strategy_ai
node_main -->|"invokes"| node_s12_deploy
node_main -->|"invokes"| node_telegram_live
node_webhook -->|"references"| node_main
node_webhook -->|"references"| node_telegram_reader
node_main -.->|"requests market data"| node_quotex
node_main -.->|"submits trades"| node_quotex
node_s12_pipeline -->|"uses features"| node_s12_data
node_s12_pipeline -->|"evaluates rules"| node_s12_rules
node_s12_pipeline -->|"generates variants"| node_s12_search
node_s12_pipeline -->|"backtests variants"| node_s12_backtest
node_s12_backtest -->|"uses features"| node_s12_data
node_s12_deploy -->|"evaluates rules"| node_s12_rules
node_s12_deploy -->|"uses features"| node_s12_data
node_s12_rules -->|"calculates indicators"| node_s12_data
node_ai_deploy -->|"invokes"| node_ai_analyzer
node_ai_deploy -->|"checks quality"| node_ai_gates
node_ai_analyzer -->|"extracts features"| node_ai_features
node_ai_analyzer -->|"scores features"| node_ai_rules
node_ai_analyzer -->|"scores features"| node_ai_ml
node_ai_features -->|"reuses indicators"| node_s12_data

click node_main "https://github.com/nagaraj556534/quotex_trading/blob/main/app/main.py"
click node_telegram_reader "https://github.com/nagaraj556534/quotex_trading/blob/main/app/signal_reader_telegram.py"
click node_telegram_live "https://github.com/nagaraj556534/quotex_trading/blob/main/app/telegram_signal_live.py"
click node_webhook "https://github.com/nagaraj556534/quotex_trading/blob/main/app/webhook_server.py"
click node_strategy10 "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy10_confluence.py"
click node_strategy15 "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy15.py"
click node_strategy20 "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy20.py"
click node_strategy33 "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy33.py"
click node_strategy37 "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy37.py"
click node_strategy38 "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy38.py"
click node_strategy41 "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy41.py"
click node_strategy_ai "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy_ai.py"
click node_s12_pipeline "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy12/pipeline.py"
click node_s12_data "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy12/features.py"
click node_s12_rules "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy12/rules.py"
click node_s12_search "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy12/search.py"
click node_s12_backtest "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy12/backtest.py"
click node_s12_deploy "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy12/deploy.py"
click node_ai_deploy "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy14_ai/deploy.py"
click node_ai_analyzer "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy14_ai/live_analyzer.py"
click node_ai_features "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy14_ai/feature_engine.py"
click node_ai_rules "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy14_ai/models/rule_based.py"
click node_ai_ml "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy14_ai/models/ml_model.py"
click node_ai_gates "https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy14_ai/quality_gates.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_main,node_telegram_reader,node_telegram_live,node_webhook toneBlue
class node_strategy10,node_strategy15,node_strategy20,node_strategy33,node_strategy37,node_strategy38,node_strategy41,node_strategy_ai toneAmber
class node_s12_pipeline,node_s12_data,node_s12_rules,node_s12_search,node_s12_backtest,node_s12_deploy toneMint
class node_ai_deploy,node_ai_analyzer,node_ai_features,node_ai_rules,node_ai_ml,node_ai_gates toneRose
class node_operator,node_quotex toneIndigo
```

## Components

### Trading runtime

- [Application runtime](https://github.com/nagaraj556534/quotex_trading/blob/main/app/main.py): `app/main.py`
- [Telegram signal reader](https://github.com/nagaraj556534/quotex_trading/blob/main/app/signal_reader_telegram.py): `app/signal_reader_telegram.py`
- [Live Telegram signals](https://github.com/nagaraj556534/quotex_trading/blob/main/app/telegram_signal_live.py): `app/telegram_signal_live.py`
- [Webhook receiver](https://github.com/nagaraj556534/quotex_trading/blob/main/app/webhook_server.py): `app/webhook_server.py`

### Strategy engines

- [Confluence strategy](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy10_confluence.py): `app/strategy10_confluence.py`
- [Strategy 15](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy15.py): `app/strategy15.py`
- [Strategy 20](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy20.py): `app/strategy20.py`
- [Strategy 33](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy33.py): `app/strategy33.py`
- [Strategy 37](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy37.py): `app/strategy37.py`
- [Strategy 38](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy38.py): `app/strategy38.py`
- [Strategy 41](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy41.py): `app/strategy41.py`
- [AI strategy](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy_ai.py): `app/strategy_ai.py`

### Strategy 12

- [Pattern and rule pipeline](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy12/pipeline.py): `app/strategy12/pipeline.py`
- [Market data features](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy12/features.py): `app/strategy12/features.py`
- [Rule evaluation](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy12/rules.py): `app/strategy12/rules.py`
- [Rule search](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy12/search.py): `app/strategy12/search.py`
- [Backtesting](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy12/backtest.py): `app/strategy12/backtest.py`
- [Strategy deployment](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy12/deploy.py): `app/strategy12/deploy.py`

### AI analysis

- [AI deployment](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy14_ai/deploy.py): `app/strategy14_ai/deploy.py`
- [Live analyzer](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy14_ai/live_analyzer.py): `app/strategy14_ai/live_analyzer.py`
- [Feature engine](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy14_ai/feature_engine.py): `app/strategy14_ai/feature_engine.py`
- [Rule-based scorer](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy14_ai/models/rule_based.py): `app/strategy14_ai/models/rule_based.py`
- [ML scorer](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy14_ai/models/ml_model.py): `app/strategy14_ai/models/ml_model.py`
- [Quality gates](https://github.com/nagaraj556534/quotex_trading/blob/main/app/strategy14_ai/quality_gates.py): `app/strategy14_ai/quality_gates.py`

### Other components

- **Bot operator**
- **Quotex platform**

## Connections

- Bot operator → Application runtime: starts
- Application runtime → Strategy 15: dispatches (evidence: `app/main.py`)
- Application runtime → Strategy 20: dispatches (evidence: `app/main.py`)
- Application runtime → Strategy 33: dispatches (evidence: `app/main.py`)
- Application runtime → Strategy 37: dispatches (evidence: `app/main.py`)
- Application runtime → Strategy 38: dispatches (evidence: `app/main.py`)
- Application runtime → Strategy 41: dispatches (evidence: `app/main.py`)
- Application runtime → AI strategy: dispatches (evidence: `app/main.py`)
- Application runtime → Strategy deployment: invokes (evidence: `app/main.py`)
- Application runtime → Live Telegram signals: invokes (evidence: `app/main.py`)
- Webhook receiver → Application runtime: references (evidence: `app/webhook_server.py`)
- Webhook receiver → Telegram signal reader: references (evidence: `app/webhook_server.py`)
- Application runtime → Quotex platform: requests market data
- Application runtime → Quotex platform: submits trades
- Pattern and rule pipeline → Market data features: uses features (evidence: `app/strategy12/pipeline.py`)
- Pattern and rule pipeline → Rule evaluation: evaluates rules (evidence: `app/strategy12/pipeline.py`)
- Pattern and rule pipeline → Rule search: generates variants (evidence: `app/strategy12/pipeline.py`)
- Pattern and rule pipeline → Backtesting: backtests variants (evidence: `app/strategy12/pipeline.py`)
- Backtesting → Market data features: uses features (evidence: `app/strategy12/backtest.py`)
- Strategy deployment → Rule evaluation: evaluates rules (evidence: `app/strategy12/deploy.py`)
- Strategy deployment → Market data features: uses features (evidence: `app/strategy12/deploy.py`)
- Rule evaluation → Market data features: calculates indicators (evidence: `app/strategy12/rules.py`)
- AI deployment → Live analyzer: invokes (evidence: `app/strategy14_ai/deploy.py`)
- AI deployment → Quality gates: checks quality (evidence: `app/strategy14_ai/deploy.py`)
- Live analyzer → Feature engine: extracts features (evidence: `app/strategy14_ai/live_analyzer.py`)
- Live analyzer → Rule-based scorer: scores features (evidence: `app/strategy14_ai/live_analyzer.py`)
- Live analyzer → ML scorer: scores features (evidence: `app/strategy14_ai/live_analyzer.py`)
- Feature engine → Market data features: reuses indicators (evidence: `app/strategy14_ai/feature_engine.py`)
