A Python-based trading signal analysis system focused on fractal patterns, Alligator indicators, and multi-timeframe confluence detection.
JGTML analyzes the effectiveness of trading signals within larger market structure contexts, providing tools for:
jgtml/SignalOrderingHelper.py: Signal validation and risk calculationjgtml/jtc.py: Target calculation and signal analysis corejgtml/TideAlligatorAnalysis.py: Unified Alligator analysis (Regular, Big, Tide) - Potential Usage not that obvious yet, it was unified by agents so we could probably use it into further code such as the FDBScan before we enter the marketjgtml/alligator_cli.py: π NEW Unified Alligator CLI with graceful TTF pattern handlingjgtml/jgtmlcli.py: Main CLI for data processingjgtml/mxcli.py: Matrix generation and analysis - (Probably the next CLI Wrapper of what jgtml/jgtmlcli.py was/is doing which is generating the mxdata which contains targets for the fdb signals (buy/sell) so we could do machine learning feature design etc). It will probably be integrated with fdb_signal_quality_predictor.py, fdb_pattern_intelligence.py, unified_discovery_dataset_generator.py,β¦jgtml/jgtapp.py: Trading operation management (includes legacy tide command wrapper) - IT was designed to contains all commands that jgtml offers along with what jgwill/jgtpy offers such as idscli and cdscli so we can access generating indicators and signals data into our logics. This is the app used to create entryOrder in the market, look an existing trade to trail the alligatorβs line for exit strategie, etc. TODO: Document way further and integrate the whole values developped with alligator_cli,jgtml/alligator_cli.py: π Unified Alligator Analysis CLI - Replaces ptojgtmltidealligator/ptojgtmlbigalligatorgarden_one/trading_echo_lattice/: Signal crystallization and memory storage - That is just a prototype done by our agents that is not quite obvious yet, that would not be a priority to work with that except if really relevant.# Install dependencies
pip install jgtpy jgtutils pandas numpy python-dateutil
# Install JGTML
pip install -e .
# Process signals for an instrument
jgtmlcli -i SPX500 -t D1 --full --fresh
# Analyze signal performance
python -m garden_one.trading_echo_lattice.cli process -i SPX500 -t D1 -d S
# Generate analysis matrix
mxcli -i EUR/USD -t H4 --fresh
Multi-indicator alignment detection using:
Implementation: TradingEchoLattice.detect_breakouts()
FDB-based breakout detection with Alligator mouth validation.
Implementation: fdb_scanner_2408.py
See CLI_HELP.md for complete command documentation.
# Data Processing
jgtmlcli -i INSTRUMENT -t TIMEFRAME [--full] [--fresh]
mxcli -i INSTRUMENT -t TIMEFRAME [--fresh]
# Unified Alligator Analysis β¨ NEW β¨
python -m jgtml.alligator_cli -i SPX500 -t D1 -d S --type tide # Single Alligator
python -m jgtml.alligator_cli -i EUR/USD -t H4 -d B --type all # Multi-Alligator convergence
python -m jgtml.alligator_cli -i GBPUSD -t D1 -d S --generate-spec # Generate .jgtml-spec
# Legacy Support (redirects to unified CLI)
jgtapp tide -i SPX500 -t D1 B # Legacy wrapper β unified Alligator CLI
# Trading Operations
jgtapp fxaddorder -i EUR/USD -n 0.1 -r 1.0950 -d B -x 1.0900
jgtapp fxmvstopgator -i EUR/USD -t H4 -tid TRADE_ID --lips
# Signal Analysis
python -m garden_one.trading_echo_lattice.cli process -i SPX500 -t D1,H4 -d S
python -m garden_one.trading_echo_lattice.cli search --min-win-rate 60
Market Data (jgtpy) β Signal Processing (jtc) β Analysis (CLI tools) β Memory Lattice (Redis)
python -m pytest tests/
While JGTML operates as a practical trading platform, it embodies recursive principles:
The system grows more intelligent through iteration, not just accumulation.
π§ Technical Foundation: Precise signal analysis with mathematical rigor
πΈ Intuitive Interface: Clear CLI flows that make complex analysis accessible
π΅ Rhythmic Patterns: Market timing encoded in fractal mathematics
Built for traders who understand that the best signals emerge from the intersection of technical precision and pattern recognition.
The unified Alligator CLI consolidates three powerful analysis frameworks into a single, graceful interface:
jgtapp tide workflows# Single Alligator Analysis
python -m jgtml.alligator_cli -i SPX500 -t D1 -d S --type tide
# Multi-Alligator Convergence (recommended)
python -m jgtml.alligator_cli -i EUR/USD -t H4 -d B --type all
# Generate .jgtml-spec for agentic workflows
python -m jgtml.alligator_cli -i GBPUSD -t D1 -d S --type all --generate-spec
# Legacy support (automatically redirects to unified CLI)
jgtapp tide -i SPX500 -t D1 B
Important: The following legacy commands have been deprecated and replaced by the unified Alligator CLI:
ptojgtmltidealligator β Use python -m jgtml.alligator_cli --type tideptojgtmlbigalligator β Use python -m jgtml.alligator_cli --type bigjgtml_ptojgtmltidealligator_by_instrument_tf_21 β Use unified CLIjgtapp tide still works)See docs/trading_intent_api.md for the proposed HTTP flow capturing narrated observations and generating .jgtml-spec files.