# gianxxcb/sistemas_inteligentes_proytecto-final architecture

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

- Interactive diagram: https://gitdiagram.com/gianxxcb/sistemas_inteligentes_proytecto-final
- Repository: https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final

## Overview

QuantLab ML V3 is a local Streamlit research panel for historical futures data. Users navigate market, scenario, specialist, simulation, validation, performance, and portfolio views; the sampled terminal code shows specialist signals reading feature data and scenario assignments, while the README describes the broader frozen-result experience. The graph preserves these documented capabilities and the feature-engine layers. Some view internals are unsampled, so their subsystem links are dashed where the excerpts do not establish runtime calls.

Main entry points: [`apps/research_pages_v3.py`](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/research_pages_v3.py) (Research views), [`apps/trading_desk_v3.py`](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/trading_desk_v3.py) (Trading desk), [`src/feature_engine/pipeline.py`](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/src/feature_engine/pipeline.py) (Feature pipeline), [`data/episodes`](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/tree/main/data/episodes) (Episodes and results)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Research interface"]
  node_entry["Streamlit entry<br/>[app.py]"]
  node_research_views["Research views"]
  node_desk["Trading desk<br/>[trading_desk_v3.py]"]
  node_visuals["Terminal visuals"]
  node_technique_guide["Technique guide<br/>[technique_guide.py]"]
  node_simulator["Simulator view"]
  node_scenario_view["Scenario view"]
  node_validation_view["Validation view"]
  node_performance_view["Performance view"]
  node_portfolio_view["Portfolio view"]
end

subgraph group_features["Feature engineering"]
  node_feature_pipeline["Feature pipeline<br/>[pipeline.py]"]
  node_multiscale["Multiscale features"]
  node_feature_families["Feature families"]
  node_asset_context["Asset context<br/>[asset_context.py]"]
  node_labels["Target labels<br/>[labels.py]"]
  node_technique_registry["Technique registry"]
end

subgraph group_models["Specialist models"]
  node_specialists["Specialist playbooks"]
  node_base_expert["Expert base<br/>[base_expert.py]"]
end

subgraph group_records["Research records"]
  node_market_data[("Historical futures")]
  node_feature_data[("Feature snapshots")]
  node_scenario_records[("Scenario assignments")]
  node_episode_records[("Episodes and results")]
  node_validation_records[("Validation reports")]
  node_microstructure[("Spread proxy")]
end

node_researcher(("Researcher"))

node_researcher -->|"opens"| node_entry
node_entry -->|"registers views"| node_research_views
node_entry -->|"registers guide"| node_technique_guide
node_research_views -->|"uses specialist names"| node_desk
node_desk -->|"instantiates experts"| node_specialists
node_specialists -->|"inherits contract"| node_base_expert
node_desk -->|"reads features"| node_feature_data
node_desk -->|"reads spread proxy"| node_microstructure
node_desk -->|"reads assignments"| node_scenario_records
node_desk -->|"reads episodes"| node_episode_records
node_feature_pipeline -->|"computes features"| node_feature_families
node_feature_pipeline -->|"computes context"| node_asset_context
node_feature_pipeline -->|"adds labels"| node_labels
node_feature_pipeline -->|"loads defaults"| node_technique_registry
node_multiscale -->|"delegates features"| node_feature_pipeline
node_multiscale -->|"writes snapshots"| node_feature_data
node_technique_guide -->|"reads registry"| node_technique_registry
node_research_views -.->|"uses presentation"| node_visuals
node_research_views -.->|"offers simulation"| node_simulator
node_research_views -.->|"offers scenarios"| node_scenario_view
node_research_views -.->|"offers validation"| node_validation_view
node_research_views -.->|"offers performance"| node_performance_view
node_research_views -.->|"offers portfolios"| node_portfolio_view
node_simulator -.->|"uses episodes"| node_episode_records
node_scenario_view -.->|"shows assignments"| node_scenario_records
node_validation_view -.->|"shows reports"| node_validation_records
node_performance_view -.->|"shows results"| node_episode_records
node_portfolio_view -.->|"shows portfolios"| node_episode_records
node_market_data -.->|"supplies candles"| node_feature_pipeline

click node_entry "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/app.py"
click node_research_views "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/research_pages_v3.py"
click node_desk "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/trading_desk_v3.py"
click node_visuals "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/terminal_visuals.py"
click node_technique_guide "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/technique_guide.py"
click node_market_data "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/tree/main/data/raw/futures"
click node_feature_pipeline "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/src/feature_engine/pipeline.py"
click node_multiscale "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/src/feature_engine/multiscale_pipeline.py"
click node_feature_families "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/tree/main/src/feature_engine"
click node_asset_context "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/src/feature_engine/asset_context.py"
click node_labels "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/src/feature_engine/labels.py"
click node_technique_registry "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/src/feature_engine/technique_registry.py"
click node_feature_data "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/tree/main/data/features/crypto"
click node_specialists "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/tree/main/src/experts"
click node_base_expert "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/src/experts/base_expert.py"
click node_scenario_records "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/tree/main/experiments/v3/representation"
click node_episode_records "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/tree/main/data/episodes"
click node_validation_records "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/tree/main/reports/validation"
click node_microstructure "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/tree/main/data/processed/v3_microstructure"
click node_simulator "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/research_pages_v3.py"
click node_scenario_view "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/research_pages_v3.py"
click node_validation_view "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/research_pages_v3.py"
click node_performance_view "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/research_pages_v3.py"
click node_portfolio_view "https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/research_pages_v3.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_entry,node_research_views,node_desk,node_visuals,node_technique_guide,node_simulator,node_scenario_view,node_validation_view,node_performance_view,node_portfolio_view toneBlue
class node_feature_pipeline,node_multiscale,node_feature_families,node_asset_context,node_labels,node_technique_registry toneAmber
class node_specialists,node_base_expert toneMint
class node_market_data,node_feature_data,node_scenario_records,node_episode_records,node_validation_records,node_microstructure toneRose
class node_researcher toneIndigo
```

## Components

### Research interface

- [Streamlit entry](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/app.py): `app.py`
- [Research views](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/research_pages_v3.py): `apps/research_pages_v3.py`
- [Trading desk](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/trading_desk_v3.py): `apps/trading_desk_v3.py`
- [Terminal visuals](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/terminal_visuals.py): `apps/terminal_visuals.py`
- [Technique guide](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/technique_guide.py): `apps/technique_guide.py`
- [Simulator view](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/research_pages_v3.py): `apps/research_pages_v3.py`
- [Scenario view](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/research_pages_v3.py): `apps/research_pages_v3.py`
- [Validation view](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/research_pages_v3.py): `apps/research_pages_v3.py`
- [Performance view](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/research_pages_v3.py): `apps/research_pages_v3.py`
- [Portfolio view](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/apps/research_pages_v3.py): `apps/research_pages_v3.py`

### Feature engineering

- [Feature pipeline](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/src/feature_engine/pipeline.py): `src/feature_engine/pipeline.py`
- [Multiscale features](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/src/feature_engine/multiscale_pipeline.py): `src/feature_engine/multiscale_pipeline.py`
- [Feature families](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/tree/main/src/feature_engine): `src/feature_engine`
- [Asset context](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/src/feature_engine/asset_context.py): `src/feature_engine/asset_context.py`
- [Target labels](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/src/feature_engine/labels.py): `src/feature_engine/labels.py`
- [Technique registry](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/src/feature_engine/technique_registry.py): `src/feature_engine/technique_registry.py`

### Specialist models

- [Specialist playbooks](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/tree/main/src/experts): `src/experts`
- [Expert base](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/blob/main/src/experts/base_expert.py): `src/experts/base_expert.py`

### Research records

- [Historical futures](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/tree/main/data/raw/futures): `data/raw/futures`
- [Feature snapshots](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/tree/main/data/features/crypto): `data/features/crypto`
- [Scenario assignments](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/tree/main/experiments/v3/representation): `experiments/v3/representation`
- [Episodes and results](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/tree/main/data/episodes): `data/episodes`
- [Validation reports](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/tree/main/reports/validation): `reports/validation`
- [Spread proxy](https://github.com/gianxxcb/sistemas_inteligentes_proytecto-final/tree/main/data/processed/v3_microstructure): `data/processed/v3_microstructure`

### Other components

- **Researcher**

## Connections

- Researcher → Streamlit entry: opens (evidence: `README.md`)
- Streamlit entry → Research views: registers views (evidence: `app.py`)
- Streamlit entry → Technique guide: registers guide (evidence: `app.py`)
- Research views → Trading desk: uses specialist names (evidence: `apps/research_pages_v3.py`)
- Trading desk → Specialist playbooks: instantiates experts (evidence: `apps/trading_desk_v3.py`)
- Specialist playbooks → Expert base: inherits contract (evidence: `src/experts/__init__.py`)
- Trading desk → Feature snapshots: reads features (evidence: `apps/trading_desk_v3.py`)
- Trading desk → Spread proxy: reads spread proxy (evidence: `apps/trading_desk_v3.py`)
- Trading desk → Scenario assignments: reads assignments (evidence: `apps/trading_desk_v3.py`)
- Trading desk → Episodes and results: reads episodes (evidence: `apps/trading_desk_v3.py`)
- Feature pipeline → Feature families: computes features (evidence: `src/feature_engine/pipeline.py`)
- Feature pipeline → Asset context: computes context (evidence: `src/feature_engine/pipeline.py`)
- Feature pipeline → Target labels: adds labels (evidence: `src/feature_engine/pipeline.py`)
- Feature pipeline → Technique registry: loads defaults (evidence: `src/feature_engine/pipeline.py`)
- Multiscale features → Feature pipeline: delegates features (evidence: `src/feature_engine/multiscale_pipeline.py`)
- Multiscale features → Feature snapshots: writes snapshots (evidence: `src/feature_engine/multiscale_pipeline.py`)
- Technique guide → Technique registry: reads registry (evidence: `apps/technique_guide.py`)
- Research views → Terminal visuals: uses presentation (evidence: `apps/research_pages_v3.py`)
- Research views → Simulator view: offers simulation (evidence: `apps/research_pages_v3.py`)
- Research views → Scenario view: offers scenarios (evidence: `apps/research_pages_v3.py`)
- Research views → Validation view: offers validation (evidence: `apps/research_pages_v3.py`)
- Research views → Performance view: offers performance (evidence: `apps/research_pages_v3.py`)
- Research views → Portfolio view: offers portfolios (evidence: `apps/research_pages_v3.py`)
- Simulator view → Episodes and results: uses episodes
- Scenario view → Scenario assignments: shows assignments
- Validation view → Validation reports: shows reports
- Performance view → Episodes and results: shows results
- Portfolio view → Episodes and results: shows portfolios
- Historical futures → Feature pipeline: supplies candles
