-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration & Templates
Syed Ibrahim Omer edited this page Apr 13, 2026
·
1 revision
indicators-cli supports two JSON inputs:
-
Indicators config (
-c, --config_json): override indicator window sizes by period and timeframe. -
Timeframe mapping (
-t, --timeframe): provide a JSON file mapping each period to a timeframe.
Default values live in the repo at src/default_configs.json. If a key is missing from your config file, the CLI falls back to defaults.
Top-level keys are indicator window names. Each key maps:
<period> → <timeframe> → <int>
Example (partial):
{
"sma_window": {
"5y": { "1d": 100 }
},
"rsi_window": {
"5y": { "1d": 21 }
}
}Usage:
indicators AAPL -c my_config.jsonThese are the keys used by the CLI today:
sma_windowema_windowmacd_shortmacd_longmacd_signalrsi_windowbb_windowroc_windowatr_windowstochastic_window
Tip: you don’t need to specify all keys—anything missing falls back to defaults.
If you only want to change RSI for 5y daily, you can supply just that key:
{
"rsi_window": {
"5y": { "1d": 21 }
}
}Everything else stays on defaults.
Instead of a single interval like 1d, you can pass a JSON file that maps each period to an interval.
Example timeframe.json:
{
"ytd": "1d",
"1y": "1d",
"2y": "1wk",
"5y": "1mo",
"10y": "3mo",
"max": "3mo"
}Usage:
indicators AAPL -t timeframe.jsonRelated pages:
- Getting Started
- CLI Reference
- Configuration & Templates
- Indicators (Overview)
- Output Formats
- Advanced Usage
- Troubleshooting
- Pipeline
- CLI Parsing
- Data Source (Yahoo Finance)
- Source Data Deep Dive
- Schema Normalization
- Data Shape Invariants
- Output Writing
- Write Output Deep Dive
- Config Resolution
- Polars Engine
- Source Modules
- Testing
- Performance
- Indicators Engine
- Reproducibility