Enhanced JGTPy CDS, IDS, PDS Services
pip install -U jgtpy
# it was so outdated I removed it, any LLM who has relevant code, please submit
a PR
Name;Title;Description;Question;Notes
fdb;Fractal Divergent Bar Code;Fractal Divergent Bar Code (contains the signal value either buy, sell or nothing);;" bdb"
fdbs;Fractal Divergent Bar Sell;Fractal Divergent Bar Sell;;" Bearish Divergent Bar"
fdbb;Fractal Divergent Bar Buy;Fractal Divergent Bar Buy;;" Bullish Divergent Bar"
acs;AC Deceleration Sell;AC Deceleration Sell;;" "
acb;AC Acceleration Buy;AC Acceleration Buy;;" "
fs;Fractal Sell;Fractal Sell;Can the representation be optimized ? Enhanced ?;" "
fb;Fractal Buy;Fractal Buy;;" "
zlcb;Zero Line Crossing Buy;Zero Line Crossing Buy;;" "
zlcs;Zero Line Crossing Sell;Zero Line Crossing Sell;;" "
zcol;Zero Line Crossing;Zero Line Crossing (Not sure if this is a signal);How many bars were there since last cross signal of the opposite direction ? How is the relationship of this signal profit and this number of bars ?;" Number of bars before last cross when another type of signal was generated could be a learning"
sz;Zone Signal Sell;Zone Signal Sell;;" "
bz;Zone Signal Buy;Zone Signal Buy;;" "
ss;Saucer Sell;Saucer Sell;;" "
sb;Saucer Buy;Saucer Buy;;
(it might be somewhere later but for now that will tell LLM about them easiely)
The package provides the following command-line tools for working with IDS, CDS, and related data services:
Command | Entry Point | Description |
---|---|---|
jgtcli |
jgtpy.jgtcli:main | General CLI for instrument/timeframe data operations: fetch, process, and chart PDS/IDS/CDS/ADS data. Handles argument parsing for instruments, timeframes, date ranges, and indicator options. |
cdscli |
jgtpy.cdscli:main | CLI for creating and processing Chaos Data Service (CDS) files from instrument/timeframe data, with support for indicator and ADS options. |
pds2cds |
jgtpy.pds2cds:main | Convert a PDS (Price Data Service) file to a CDS (Chaos Data Service) file, with options for bar count and TLID date range. |
jgtmksg |
jgtpy.JGTMKSG:main | Generate market snapshots and chart visualizations for multiple instruments/timeframes, with advanced charting and HTML output options. |
jgtads |
jgtpy.JGTADS:main | Generate and plot Advanced Data Service (ADS) analytics and visualizations from CDS or PDS data, including technical indicators and signals. |
jgtids |
jgtpy.jgtapycli:main | Generate and process Indicator Data Service (IDS) files, with CLI options for indicators, normalization, and output. |
adscli |
jgtpy.JGTADS:main | Alias for jgtads : generate and plot ADS analytics and visualizations. |
mkscli |
jgtpy.JGTMKSG:main | Alias for jgtmksg : generate market snapshots and chart visualizations. |
idscli |
jgtpy.jgtapycli:main | Alias for jgtids : generate and process IDS files. |
adsfromcds |
jgtpy.adsfromcdsfile:main | Create plots from CDS cache data, supporting custom output directories, chart types, and feature plots. |
For more details on each command, read CLI_REFERENCE.md or run the command with --help
.
Additional usage demonstrations can be found in the examples directory.
New in v0.6.0: Automated data refresh service with parallel processing and cloud distribution.
The JGT Data Refresh Service (jgtservice
) modernizes the manual bash script workflow for processing financial market data with:
# Install base functionality
pip install -e .
# Install with web service dependencies
pip install -e ".[serve]"
# One-time refresh
jgtservice --refresh-once -i EUR/USD -t H1
# Continuous daemon mode
jgtservice --daemon --all
# Web API server
jgtservice --web --port 8080
# Check service status
jgtservice --status
When running in web mode (jgtservice --web
), the following API endpoints are available:
GET /api/v1/data/{instrument}/{timeframe}
- Retrieve processed CDS dataGET /api/v1/data/{instrument}/{timeframe}/latest
- Get latest data pointGET /api/v1/status
- Service status and configurationGET /api/v1/health
- Health check endpointPOST /api/v1/refresh
- Trigger manual refreshGET /api/v1/metrics
- Processing metrics and statisticsGET /docs
- Interactive API documentationThe service can be configured via environment variables:
# Data paths
export JGTPY_DATA="/path/to/current/data"
export JGTPY_DATA_FULL="/path/to/full/data"
# Timeframe configuration
export TRADABLE_TIMEFRAMES="m1,m5,m15,m30,H1,H4"
export HIGH_TIMEFRAMES="H4,D1,W1"
# Service settings
export JGTPY_SERVICE_MAX_WORKERS=4
export JGTPY_SERVICE_WEB_PORT=8080
export JGTPY_DROPBOX_APP_TOKEN="your_dropbox_token"
# Optional API authentication
export JGTPY_API_KEY="your_api_key"
For complete documentation, see docs/jgtservice_implementation.md.
The repository includes convenience scripts for common operations:
# First time setup
./setup-service.sh --full
# Check service status
./check-status.sh
# Refresh all data (excludes m1)
./refresh-all.sh
# Start API server
./start-api-server.sh
# Start continuous daemon
./start-daemon.sh
See SCRIPTS_README.md for detailed script documentation.
=======
The jgtpy/JGTIDS.py
file is responsible for generating and managing IDS (Indicator Data Service) files. Here is a Markdown table documenting all the columns in JGTIDS.py
that are in the output:
Column Name | Description |
---|---|
Date |
The date and time of the data point. |
Open |
The opening price of the data point. |
High |
The highest price of the data point. |
Low |
The lowest price of the data point. |
Close |
The closing price of the data point. |
Volume |
The volume of the data point. |
Median |
The median price of the data point. |
ao |
The Awesome Oscillator value. |
ac |
The Acceleration/Deceleration Oscillator value. |
jaw |
The Alligatorโs jaw value. |
teeth |
The Alligatorโs teeth value. |
lips |
The Alligatorโs lips value. |
fh |
The fractal high value. |
fl |
The fractal low value. |
fdb |
The fractal divergent bar value. |
fdbb |
The fractal divergent bar buy signal. |
fdbs |
The fractal divergent bar sell signal. |
zlc |
The zero line cross value. |
zlcB |
The zero line cross buy signal. |
zlcS |
The zero line cross sell signal. |
bz |
The buy zone signal. |
sz |
The sell zone signal. |
aocolor |
The color of the Awesome Oscillator. |
accolor |
The color of the Acceleration/Deceleration Oscillator. |
aof |
The AO fractal peak value. |
aofvalue |
The AO fractal peak value. |
aofhighao |
The AO value on the bullish peak. |
aoflowao |
The AO value on the bearish peak. |
aofhigh |
The price high of the peak. |
aoflow |
The price low of the peak. |
mfi |
The Market Facilitation Index value. |
mfi_squat |
The MFI squat signal. |
mfi_green |
The MFI green signal. |
mfi_fade |
The MFI fade signal. |
mfi_fake |
The MFI fake signal. |
mfi_signal |
The MFI signal value. |
mfi_val |
The MFI value. |
zone_signal |
The zone signal value. |
zone_int |
The zone integer value. |
For the full, up-to-date list of IDS (Indicator Data Service) columns and their descriptions, see the canonical documentation:
The jgtpy/JGTCDS.py
file is responsible for creating, reading, and managing Chaos Data Service (CDS) files from Price Data Service (PDS) files. Here is a Markdown table documenting all the columns in JGTCDS.py
that are added after using JGTIDS.py
and are in the output:
Column Name | Description |
---|---|
fdbbhigh |
The high value of the fractal divergent bar buy signal. |
fdbblow |
The low value of the fractal divergent bar buy signal. |
fdbshigh |
The high value of the fractal divergent bar sell signal. |
fdbslow |
The low value of the fractal divergent bar sell signal. |
aocolor |
The color of the Awesome Oscillator. |
accolor |
The color of the Acceleration/Deceleration Oscillator. |
zcol |
The zone color value. |
zlc |
The zero line cross value. |
zlcB |
The zero line cross buy signal. |
zlcS |
The zero line cross sell signal. |
bz |
The buy zone signal. |
sz |
The sell zone signal. |
mfi_squat |
The MFI squat signal. |
mfi_green |
The MFI green signal. |
mfi_fade |
The MFI fade signal. |
mfi_fake |
The MFI fake signal. |
mfi_signal |
The MFI signal value. |
mfi_val |
The MFI value. |
zone_signal |
The zone signal value. |
zone_int |
The zone integer value. |
The jgtpy/JGTIDS.py
file is responsible for generating and managing IDS (Indicator Data Service) files. The jgtids
script, exposed through [project.scripts]
in pyproject.toml
, provides functionalities to create IDS files, read IDS files, and perform other related operations. Here is a detailed documentation of the purpose of JGTIDS and what end-results it produces in terms of data for JGTCDS.py
:
JGTIDS.py
is to add various technical indicators to the financial market data. These indicators are used for market analysis and trading decisions.JGTCDS.py
to create Chaos Data Service (CDS) files.JGTIDS.py
are essential for generating the CDS files, which are used for further analysis and charting.JGTIDS.py
include various technical indicators and signals, which are documented in the docs/IDS_data_columns.md
file.JGTIDS.py
to add indicators and signals.JGTCDS.py
to create CDS files.The jgtpy/JGTCDS.py
file is responsible for creating, reading, and managing Chaos Data Service (CDS) files from Price Data Service (PDS) files. Here is a detailed documentation of the purpose of JGTCDS and what it produces after getting data from JGTIDS.py
:
JGTCDS.py
is to process the input data from JGTIDS.py
and create CDS files. These files contain processed financial market data with various technical indicators and signals.JGTIDS.py
to add various technical indicators and signals.JGTIDS.py
is then used by JGTCDS.py
to create CDS files. The module adds additional indicators and signals to the data, such as fractal divergent bar signals, zero line cross signals, and zone signals.JGTCDS.py
contain processed financial market data with various technical indicators and signals. These files are used for further analysis, charting, and generating trading signals.JGTCDS.py
include various technical indicators and signals, which are documented in the docs/CDS_data_columns.md
file.JGTIDS.py
to add indicators and signals.JGTCDS.py
to create CDS files.The jgtpy/JGTCDSSvc.py
file is responsible for providing services related to Chaos Data Service (CDS) files. Here is a detailed documentation of the purpose of JGTCDSSvc and what it produces:
JGTCDSSvc.py
is to provide functionalities for creating, reading, and managing CDS files. It acts as a service layer that interacts with JGTCDS.py
to perform these operations.JGTIDS.py
to add various technical indicators and signals.JGTIDS.py
is then used by JGTCDS.py
to create CDS files. The module adds additional indicators and signals to the data, such as fractal divergent bar signals, zero line cross signals, and zone signals.JGTCDSSvc.py
contain processed financial market data with various technical indicators and signals. These files are used for further analysis, charting, and generating trading signals.JGTCDSSvc.py
include various technical indicators and signals, which are documented in the docs/CDS_data_columns.md
file.JGTIDS.py
to add indicators and signals.JGTCDS.py
to create CDS files.jgtads
is the command-line gateway to Advanced Data Service (ADS) analytics and visualizations. It empowers you to:
Typical usage:
jgtads --instrument EURUSD --timeframe H1 --show --save_figure my_analytics.png
Or, to save with auto-naming:
jgtads --instrument EURUSD --timeframe H1 --save_figure charts/ --save_figure_as_timeframe
--instrument
and --timeframe
are required.--show
to display, or --save_figure
to save.--input
, --output
, --indicators
, or --signals
options exist.Like a fractal lens,
jgtads
reveals the hidden patterns in your market dataโone invocation, many insights.