Skip to content

Commit fe179c9

Browse files
committed
2026-02-27 README enrichment: section descriptions, library intro, detailed guides
1 parent a541837 commit fe179c9

1 file changed

Lines changed: 59 additions & 9 deletions

File tree

‎README.md‎

Lines changed: 59 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838

3939
<br>
4040

41+
Tradix is a high-performance backtesting engine built for quantitative traders and researchers. Powered by pure NumPy vectorization, it runs 1,000 parameter optimizations in under a second. No boilerplate, no configuration files, no data pipeline setup — just install and backtest.
42+
43+
The library ships with 33 battle-tested strategies, 60+ technical indicators, and a built-in data feed that auto-downloads from global exchanges including KRX (Korea Exchange). Whether you're prototyping a Golden Cross on Samsung Electronics or stress-testing a multi-factor portfolio against Black Swan scenarios, Tradix handles the entire pipeline: data → signals → execution → analytics → visualization.
44+
4145
> **Two lines.** `backtest` · `show` — that's the entire workflow.
4246
4347
```python
@@ -63,7 +67,7 @@ result.show()
6367
result.show(style="bloomberg")
6468
```
6569

66-
> `backtest()` auto-downloads data via FinanceDataReader, runs the strategy with commission and slippage, and returns a full result object.
70+
`backtest()` auto-downloads price data via FinanceDataReader, applies the strategy with realistic commission and slippage modeling, and returns a comprehensive result object. Pass any ticker symbol — US stocks, Korean stocks, ETFs, indices, and crypto are all supported out of the box.
6771

6872
```
6973
=== Backtest Result ===
@@ -82,6 +86,8 @@ Win Rate: 61.1%
8286

8387
## ◈ Why Tradix?
8488

89+
Most backtesting frameworks require hundreds of lines of boilerplate — data loaders, strategy classes, broker configs, result parsers. Tradix eliminates all of that. Here's how it compares:
90+
8591
<table>
8692
<tr><td>
8793

@@ -101,13 +107,19 @@ Win Rate: 61.1%
101107
</td></tr>
102108
</table>
103109

110+
> **Three pillars.** `numpy` · `pandas` · `scipy` — that's the entire foundation. No C extensions, no binary dependencies, no compilation step.
111+
104112
<br>
105113

106114
## ◈ Features
107115

108116
<details open>
109117
<summary><b>Core Engine</b></summary>
110118

119+
<br>
120+
121+
The heart of Tradix is a dual-engine architecture: an event-driven engine for complex strategies with bar-by-bar logic, and a vectorized engine for lightning-fast batch operations. Both engines share the same indicator library and produce identical results.
122+
111123
| Feature | Description |
112124
|:--------|:------------|
113125
| **Vectorized Engine** | NumPy-powered core, 100x faster than event-driven loops |
@@ -124,6 +136,10 @@ Win Rate: 61.1%
124136
<details>
125137
<summary><b>Advanced Analytics</b></summary>
126138

139+
<br>
140+
141+
Go beyond simple returns. Tradix provides institutional-grade analytics that dissect every aspect of your strategy — from 12-dimensional DNA fingerprinting to Black Swan resilience scoring. Understand not just *how much* your strategy made, but *why* it works and *when* it might fail.
142+
127143
| Feature | Description |
128144
|:--------|:------------|
129145
| **Strategy DNA** | 12-dimensional strategy fingerprinting |
@@ -141,6 +157,10 @@ Win Rate: 61.1%
141157
<details>
142158
<summary><b>Innovative Analytics</b></summary>
143159

160+
<br>
161+
162+
Tradix pushes the boundary of what a backtesting library can do. Monte Carlo simulations with 10,000 paths estimate your ruin probability. Fractal analysis reveals whether your market is trending or mean-reverting. Regime detection identifies hidden market states so you can adapt your strategy dynamically.
163+
144164
| Feature | Description |
145165
|:--------|:------------|
146166
| **Monte Carlo** | 10K-path bootstrap with ruin probability and confidence bands |
@@ -154,6 +174,10 @@ Win Rate: 61.1%
154174
<details>
155175
<summary><b>Terminal UI — TradingView-Inspired</b></summary>
156176

177+
<br>
178+
179+
No browser needed. Tradix renders professional trading dashboards directly in your terminal using Rich and Plotext. Choose from three display styles inspired by TradingView, Bloomberg Terminal, and hedge fund reports. The interactive Textual dashboard provides a full 5-view experience with keyboard navigation.
180+
157181
| Feature | Description |
158182
|:--------|:------------|
159183
| **3 Display Styles** | Modern (TradingView), Bloomberg (dense 4-quadrant), Minimal (hedge fund) |
@@ -166,6 +190,10 @@ Win Rate: 61.1%
166190
<details>
167191
<summary><b>Korean Market</b></summary>
168192

193+
<br>
194+
195+
Tradix is the first backtesting engine built with native Korean market support. Transaction tax (0.18%), brokerage fees, and KRX stock name mapping are all built-in. You can even write your entire strategy in Korean — function names, variable names, and output are all available in 한국어.
196+
169197
| Feature | Description |
170198
|:--------|:------------|
171199
| **Native Support** | Built-in transaction tax (0.18%), brokerage fees, KRX stock mapping |
@@ -185,15 +213,16 @@ Win Rate: 61.1%
185213
uv init my-backtest && cd my-backtest
186214
uv add tradix
187215

188-
uv add "tradix[full]"
216+
uv add "tradix[full]" # + Plotly, statsmodels, scikit-learn
217+
uv add "tradix[tui]" # + Textual interactive dashboard
189218
```
190219

191220
### Using pip
192221

193222
```bash
194-
pip install tradix
195-
196-
pip install "tradix[full]"
223+
pip install tradix # Core (NumPy + Pandas + Rich)
224+
pip install "tradix[full]" # + Plotly, statsmodels, scikit-learn
225+
pip install "tradix[tui]" # + Textual interactive dashboard
197226
```
198227

199228
### From source
@@ -202,14 +231,17 @@ pip install "tradix[full]"
202231
git clone https://github.com/eddmpython/tradix.git
203232
cd tradix
204233
uv sync --dev
234+
uv run pytest
205235
```
206236

207-
**Requirements:** Python 3.9+, NumPy, Pandas
237+
**Requirements:** Python 3.9+ · NumPy · Pandas · Rich · Plotext · Typer
208238

209239
<br>
210240

211241
## ◈ Usage
212242

243+
Tradix offers multiple levels of abstraction. Start with the 2-line easy API, graduate to the declarative strategy builder for custom logic, or drop down to the full event-driven engine when you need bar-by-bar control.
244+
213245
### Declarative Strategy Builder
214246

215247
```python
@@ -231,6 +263,8 @@ result.show()
231263

232264
### Parameter Optimization
233265

266+
Find optimal strategy parameters by sweeping across a parameter grid. Tradix runs all combinations using the vectorized engine — 1,000 combinations finish in under a second.
267+
234268
```python
235269
from tradix import voptimize
236270

@@ -248,6 +282,8 @@ print(f"Sharpe: {best['best']['metric']:.2f}")
248282

249283
### Vectorized Mode (100x Faster)
250284

285+
Skip the event loop entirely. The vectorized engine processes the entire price history as NumPy arrays, delivering results in microseconds.
286+
251287
```python
252288
from tradix import vbacktest
253289

@@ -257,7 +293,9 @@ print(f"Sharpe: {result.sharpeRatio:.2f}")
257293
print(f"Max DD: {result.maxDrawdown:.2f}%")
258294
```
259295

260-
### Korean API
296+
### Korean API (한국어 API)
297+
298+
Every function, every strategy, every output — available in native Korean. No wrappers, no translation layers. First-class Korean market citizen.
261299

262300
```python
263301
from tradix import 백테스트, 골든크로스
@@ -380,6 +418,8 @@ mc = simulator.monteCarloSimulation(horizon=252, nSim=10000)
380418

381419
## ◈ Strategies
382420

421+
33 production-ready strategies organized by trading style. Each strategy is a callable that returns a configured strategy object — no subclassing, no boilerplate. Pass parameters to customize, or use the defaults.
422+
383423
<details open>
384424
<summary><b>Trend Following (9)</b></summary>
385425

@@ -457,6 +497,8 @@ mc = simulator.monteCarloSimulation(horizon=252, nSim=10000)
457497

458498
## ◈ Indicators
459499

500+
60+ technical indicators implemented in pure NumPy. Each indicator is available as both a standalone function and a strategy-builder condition. All calculations are vectorized — even complex indicators like Ichimoku Cloud run in microseconds.
501+
460502
| Category | Indicators |
461503
|:---------|:-----------|
462504
| **Moving Averages** | `sma` `ema` `wma` `hma` `tema` `dema` `vwma` `alma` |
@@ -471,7 +513,7 @@ mc = simulator.monteCarloSimulation(horizon=252, nSim=10000)
471513

472514
## ◈ Performance
473515

474-
Benchmarked on 10 years of daily data (2,458 bars):
516+
Tradix is built for speed. The vectorized engine processes entire price histories as contiguous NumPy arrays, eliminating Python loop overhead. Benchmarked on 10 years of daily data (2,458 bars):
475517

476518
| Operation | Time |
477519
|:----------|:-----|
@@ -485,6 +527,8 @@ Benchmarked on 10 years of daily data (2,458 bars):
485527

486528
## ◈ Terminal UI
487529

530+
Professional trading dashboards rendered directly in your terminal. No browser, no GUI toolkit, no Jupyter dependency. Tradix uses Rich for styled tables and panels, Plotext for ASCII charts, and optionally Textual for a full interactive experience.
531+
488532
### Display Styles
489533

490534
```python
@@ -535,6 +579,8 @@ launchDashboard(result)
535579

536580
## ◈ Advanced Analytics
537581

582+
Tradix includes a full suite of institutional-grade analytics. Each analyzer takes a backtest result and returns a structured report with scores, metrics, and actionable insights.
583+
538584
```python
539585
from tradix import (
540586
StrategyDnaAnalyzer, BlackSwanAnalyzer, StrategyHealthAnalyzer,
@@ -624,6 +670,8 @@ Indicators support comparison operators: `sma(10) > sma(30)`, `rsi(14) < 30`
624670

625671
## ◈ Architecture
626672

673+
Tradix follows a modular architecture. Each subsystem is independently importable, so you can use just the indicators, just the risk engine, or the full pipeline.
674+
627675
```
628676
tradix/
629677
├── engine.py # Core backtest engine
@@ -652,6 +700,8 @@ tradix/
652700

653701
## ◈ Contributing
654702

703+
Contributions are welcome. Fork the repo, create a feature branch, and submit a pull request.
704+
655705
```bash
656706
git clone https://github.com/eddmpython/tradix.git
657707
cd tradix
@@ -675,7 +725,7 @@ If Tradix helps your trading research, consider supporting the project:
675725

676726
## ◈ License
677727

678-
MIT License. Use it freely in personal and commercial projects.
728+
[MIT](LICENSE) — Use freely in personal and commercial projects.
679729

680730
<div align="center">
681731

0 commit comments

Comments
 (0)