A high-performance terminal-native crypto signal scanner with live Z-score analytics, DEAP-based RL tuning, and automated backtesting.
Project description
cb-signalTUI
A quant-grade, terminal-native crypto signal scanner with DEAP-powered optimization, Z-score fusion, and historical backtesting.
๐ Features
- ๐ Real-Time Cryptocurrency Scanning โ Parallel async fetches across 20+ pairs using aiohttp
- ๐ Advanced Technical Signal Fusion โ EMA spreads, Z-score, Savitzky-Golay slope, RSI, and volatility scoring
- ๐งฌ DEAP-based Z-threshold Optimization โ Learns optimal Z-score thresholds per asset in real-time
- ๐ง Strategy Classification โ Categorizes signals as
momentum,reversal, orneutral - ๐ฅ๏ธ Rich Terminal UI โ Color-coded TUI with auto-refresh and table output
- ๐ฃ๏ธ Voice Alerts โ pyttsx3-based text-to-speech for high-confidence signal calls
- ๐งช Backtesting โ Simulates signal accuracy, Sharpe ratio, and expectancy over future price lookahead
- ๐ SQLite Logging โ All signals stored with timestamp, price, z-score, strategy, and confidence
- ๐ง Modular Design โ Includes scanner, indicators, RL tuner, backtest logic, and environment config
- ๐ Build Pipeline โ Auto-commits artifacts to
/built/, publishes releases, and tags by version
๐งฑ Project Structure
cb-signalTUI/
โโโ cb_signal_tui/ # Main package directory
โ โโโ __init__.py # Version + API exports
โ โโโ __main__.py # Entry point CLI: scan or backtest
โ โโโ scanner.py # Async candle fetcher, signal emitter, DB logger
โ โโโ indicators.py # EMA, Z, RSI, slope, volatility logic
โ โโโ ga_optimizer.py # DEAP-powered genetic tuning
โ โโโ backtest.py # PnL, accuracy, Sharpe eval
โ โโโ config.py # ENV overrides and signal parameters
โ โโโ utils.py # Alerting, logging, RSI, classification
โ
โโโ .github/workflows/build.yml # GitHub Actions CI/CD
โโโ pyproject.toml # Build/packaging metadata
โโโ requirements.txt # Dependencies
โโโ LICENSE # BSD-3-Clause License
โโโ README.md # This file
โโโ signals.db # SQLite runtime database (ignored by .git)
๐ ๏ธ Installation
git clone https://github.com/LoQiseaking69/Cb-signalTUI.git
cd Cb-signalTUI
pip install -r requirements.txt
To install from built artifacts:
pip install ./built/cb_signal_tui-*.whl
๐ฆ Usage
Run the live scanner:
cb-signal-tui
Run the backtester:
cb-signal-tui --backtest
To export results:
cb-signal-tui --backtest --export
โ๏ธ Configuration
Settings are located in config.py and respect ENV overrides:
PRODUCTS: List of asset pairsSETTINGS: EMA spans and Z thresholds per assetZ_SCORE_WINDOW,VOLATILITY_THRESHOLD,FLAT_SLOPE_THRESHOLD: Signal tuningSTRATEGY_FILTER: Types to allow in scanner (e.g.,momentum,reversal)ALERT_CONFIDENCE_THRESHOLD: Alert trigger levelREFRESH_INTERVAL: Terminal UI refresh rateGRANULARITY: Candle resolution (Coinbase granularity)
๐งช Backtesting
Evaluates signal outcome 20 minutes into the future:
cb-signal-tui --backtest
Outputs:
๐๏ธ SQLite Signal Schema
CREATE TABLE signals (
timestamp TEXT,
asset TEXT,
price REAL,
z_score REAL,
signal TEXT,
confidence REAL,
strategy TEXT
);
๐ผ๏ธ Terminal Example
๐ค Contributing
- Fork this repository
- Create a branch:
git checkout -b feature-x - Commit your changes
- Open a PR
Built for precision. Tuned for performance. Stay ahead of the market.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cb_signal_tui-1.4.1.tar.gz.
File metadata
- Download URL: cb_signal_tui-1.4.1.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8af13b5a873ff6b75ed05cddb6421ebe04e5b26f67564cb2bde34d409cdc779d
|
|
| MD5 |
ab42a0a27961cb526081503bb2fd2fc6
|
|
| BLAKE2b-256 |
8dacdd89412c932952d9543059d9bef61cb6eeefd409de13d2db3403e76ee48c
|
File details
Details for the file cb_signal_tui-1.4.1-py3-none-any.whl.
File metadata
- Download URL: cb_signal_tui-1.4.1-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
983ef3338e53e64d325065c64234156f4649c51ffebc845d9d81bf89d082e8ba
|
|
| MD5 |
f8422362b17bd2908bcf534603594cbf
|
|
| BLAKE2b-256 |
553ee06a89c882a80d7e2cb4cfaefaa513999f4def00afd5fa524bfdfac0b04f
|