How quadapt-ai/q-quant works
Project type and purpose
• This repository, “Q-Quant,” is an open-source quantitative-finance toolkit. It provides two main modules:
• MLClassification – machine-learning-based signal generation
• MTF PSAR – multi-timeframe Parabolic SAR-based signal generation
• Each module contains signal definitions and underlying functions. Users plug these into their own data-feed and execution frameworks.
File structure
• Top-level:
• .gitignore, LICENSE – standard repo files
• README.md – brief project title
• MLClassification/
– MLClassificationFunctions/ – reusable ML routines (feature extraction, model wrappers)
– Signals/ – specific classification-based signal implementations
– README.md – module overview
• MTF PSAR/
– “FiboExits – Normalized Weighted PSAR MTF”/ – advanced PSAR exit logic submodule
– Signals/ – PSAR signal implementations across timeframes
– README.md – module overview
• No backend/frontend separation; this is a library/toolkit, not a web service.
README
• The root README only states “# Q-Quant.”
• Each module has its own README describing its purpose, inputs, outputs, and dependencies.
a. Main components:
1. Data Ingestion Layer
– Market data API or CSV loader
2. MLClassification Module
– MLClassificationFunctions (feature engineering, model interface)
– Signals (classification rules)
3. MTF PSAR Module
– Core PSAR generator (multi-timeframe logic)
– FiboExits submodule
– Signals (PSAR-based rules)
4. Aggregator/Strategy Interface
– Combines signals from both modules
– Applies position sizing, risk filters
5. Output/Execution Layer
– Emits trading signals or writes to file/DB
b. Relationships & data flow:
– Market data → Data Ingestion → both MLClassification and MTF PSAR modules in parallel
– Each module processes data and emits a “signal stream”
– Aggregator subscribes to both streams, applies strategy logic → Output/Execution
c. Architectural patterns:
– Modular plugin pattern: each signal-generation module lives in its own directory, self-describing via its own README
– Data-flow pipeline: linear flow from ingestion to execution
d. Key technologies/libraries:
– Python (implied by .py structures)
– ML libs (scikit-learn, TensorFlow/PyTorch if referenced in MLClassificationFunctions)
– Pandas/Numpy for data manipulation
– No web frameworks or databases are explicitly present