About Strategies Architecture Docs Blog GitHub
Italiano English
SYS.INIT // v2.0.4-stable

Alpha
Generation.
Automated.

> CryptoQuantix is a quantitative trading engine for crypto perpetuals.
> Abandoning intraday orderflow for robust, multi-cycle strategies.
> Validated across 4 years of bull and bear markets.

0ms
Data Lag
1.5x
Max Exposure
3
Active Algos
100%
Automated
root@cryptoquantix:~/engine
[INFO] Loading historical data... DONE
[INFO] Warming up indicators (SMA200, ATR20)... DONE
[SYS] Market Regime classified as: BULL_EXPANSION
[RISK] Margin check passed. Current exposure: 0.8x
[ALGO] Signal detected on MacroCore(Long)
[EXEC] Routing order to Deribit API...
[OK] Order filled at 68,450.00 (Qty: 0.1 BTC)
[RISK] Updating stop loss to 64,200.00 (Chandelier)
tail -f /var/log/trading.log
WARNING_RISK_ASSESSMENT: Crypto futures are highly volatile. Software provided "as is" without warranty. Always use dry-run mode before deploying capital.

01. Pipeline

System Architecture

01

Data Ingestion

Asynchronous websocket connections to Binance Futures API. Captures klines and orderbook depth with zero latency.

asyncio / aiohttp / binance-connector
02

Signal Engine

Computes technical indicators (SMA, ATR, Bollinger) and evaluates logic gates across 3 independent macro-strategies.

pandas / numpy / ta-lib
03

Risk Matrix

Filters signals through exposure caps (1.5x), volatility targeting, and applies the daily kill-switch constraints.

Custom Risk Module / Redis State
04

Execution

Routes approved orders to Deribit via FIX/REST protocols. Manages trailing stops and partial take-profits dynamically.

Deribit API v2 / CCXT

02. Models

Quantitative Strategies

Validated on 4 years of tick-data (2022-2026). Factoring in 0.20% slippage/fees per roundtrip. Zero look-ahead bias.

STRAT_01

Macro Core

The anchor of the portfolio. A trend-following system that activates strictly when the underlying asset is trading above its 200-day Simple Moving Average. It utilizes a Chandelier Exit (5x ATR(20)) to trail profits, allowing winners to run for weeks or months.

  • Logic: Long-only Trend Following
  • Allocation: 40% of Capital
  • Average Hold: 14-30 Days
Backtest Results (BTCUSDT)
Total Return +315.4%
Max Drawdown -24.7%
Profit Factor 1.85
Win Rate 42.1% (High R:R)
Backtest Results (ETHUSDT)
Total Return +184.2%
Max Drawdown -18.3%
Profit Factor (Short) 1.26
Profit Factor (Long) 1.53
STRAT_02

Trend Breakdown

A bi-directional breakout system designed to capture momentum bursts. It shorts the breakdown of a 48h-low during macro bear regimes (Price < SMA200), and longs the breakout of a 7d-high during macro bull regimes.

  • Logic: Volatility Breakout
  • Allocation: 40% of Capital
  • Average Hold: 5-7 Days

03. Security

Risk Protocol

Survival is paramount. CryptoQuantix employs institutional-grade risk management constraints to protect the portfolio from black swan events and algorithmic failures.

Absolute Exposure Cap

Hardcoded maximum gross exposure of 1.5x the account equity. Prevents over-leveraging even if multiple signals fire concurrently.

Daily Kill Switch

If realized + unrealized losses reach -3% of the daily starting equity, all positions are flattened and trading is halted for 24h.

Volatility Sizing

Position sizing is inversely proportional to the 20-day Average True Range (ATR). Higher volatility = Smaller positions.

LIVE_MONITOR
Total Equity $52,450.00
Gross Exposure 0.8x / 1.5x MAX
Daily Drawdown -0.4% / -3.0% LIMIT

Deploy The Engine.

Clone the repo, set your Deribit keys, and initialize the async loop.

git clone https://github.com/CryptoQuantix/CryptoQuantix.git
cd CryptoQuantix
pip install -r requirements.txt
cp .env.example .env # Configure your API keys
python -m src.async_trading_bot