caishen

Caishen Trading Platform

Version: 1.0
Last Updated: 2026-02-01
Attribution: Guillaume D.Isabelle

Caishen is a comprehensive Fractal Breakout Trading Platform designed to empower traders with advanced analysis and automated strategy management capabilities. It leverages chaos theory indicators (Bill Williams methodology) to identify and act on fractal breakout opportunities in the market.

Core Creative Intent

Caishen enables users to:

Desired Outcomes:

  1. Users naturally identify high-probability trading opportunities through visual chart analysis.
  2. Entry orders are placed at fractal breakout levels with proper risk management.
  3. Strategy states advance automatically based on market price action.
  4. A complete audit trail of trading decisions and market snapshots is maintained.

Service Architecture

The platform employs a Domain-Driven Service Architecture with a clear separation of concerns across Presentation, Service, and Data Layers.

┌─────────────────────────────────────────────────────────────────┐
│                    PRESENTATION LAYER                           │
│  ┌─────────────────┐  ┌─────────────────┐  ┌─────────────────┐ │
│  │  WinForms UI    │  │  Express API    │  │  Console Apps   │ │
│  │  (Charting)     │  │  (REST/JSON)    │  │  (CLI Tools)    │ │
│  └─────────────────┘  └─────────────────┘  └─────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────────┐
│                    SERVICE LAYER                                │
│  ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐  │
│  │   ADS   │ │   SDS   │ │   PDS   │ │   CDS   │ │   IDS   │  │
│  │Analysis │ │Strategy │ │ Price   │ │ Chaos   │ │Indicator│  │
│  │ Data    │ │  Data   │ │  Data   │ │  Data   │ │  Data   │  │
│  │ Service │ │ Service │ │ Service │ │ Service │ │ Service │  │
│  └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘  │
│  ┌─────────┐ ┌─────────┐ ┌─────────┐                          │
│  │  BITT   │ │   SE    │ │   THS   │                          │
│  │Timeline │ │ SEngine │ │Historic │                          │
│  │ Service │ │ (Chart) │ │Snapshot │                          │
│  └─────────┘ └─────────┘ └─────────┘                          │
└─────────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────────┐
│                    DATA LAYER                                   │
│  ┌─────────────────┐  ┌─────────────────┐  ┌─────────────────┐ │
│  │   SQL Server    │  │    MongoDB      │  │  JSON Files     │ │
│  │   (Entities)    │  │  (TimeSeries)   │  │   (CDB DTOs)    │ │
│  └─────────────────┘  └─────────────────┘  └─────────────────┘ │
└─────────────────────────────────────────────────────────────────┘

Core Services:

Component Description
ADS Analysis Data Services - Chart data creation and analysis
SDS Strategic Data Services - Entry order management
PDS Price Data Services - Market data processing
CDS Chaos Data Services - Fractals and chaos indicators
IDS Indicator Data Services - Technical indicators
BITT Timeline Services - Market charting timeline
SE SEngine - Charting engine core
THS Timeline History Services - Snapshots

Key Concepts

Fractal Breakout Trading Workflow

The Caishen platform supports an end-to-end workflow for fractal breakout trading, encompassing:

  1. Data Acquisition: Fetching real-time and historical price data.
  2. Analysis: Building ChaosDataBuilder (CDB) with all Bill Williams chaos indicators (Alligator, AO, AC, Fractals, Zones, Gator).
  3. Signal Detection: Identifying initiating fractal signals and divergence patterns.
  4. Strategy Creation: User confirms trade setup, and a BDBO strategy is created, capturing the market snapshot.
  5. Monitoring: Continuous checking of price against breakout levels.
  6. Execution: Automatic submission of entry orders upon breakout detection.
  7. Management: Tracking order status and strategy lifecycle.
  8. Completion: Strategy closure and preservation of timeline for review.

Technology Stack

Original Implementation (C#/.NET):

Target Implementation (Python/TypeScript):

JGT Ecosystem Bridge

Caishen integrates with the JGT Ecosystem to provide a unified trading platform. This bridge enables:

Further Documentation

For detailed specifications on each component, data schema, API, and workflow, please refer to the rispecs directory: