Multi-Strategy Runtime
npx @tradejs/cli signals can run multiple strategies in one pass.
Source:
@tradejs/cli
How Strategies Are Loaded
For selected user, runtime scans keys:
users:<user>:strategies:*:config
For each key it resolves:
- strategy name from Redis key
- creator via
getStrategyCreator(strategyName) - config payload from Redis
Unknown strategies are skipped with warning.
Per-Symbol Execution Order
- Load symbol candles and BTC context candles.
- Iterate loaded strategies in sorted config-key order.
- Run each strategy.
- On first non-empty signal:
- save signal to Redis
- stop checking other strategies for this symbol
So current behavior is first signal wins per symbol in one run.
Data Context
Every strategy receives:
- symbol candles (
data) - BTC symbol candles (
btcData) - BTC Binance/Coinbase candles (for spread/correlation context)
Runtime injects:
ENV: 'CRON'- selected
INTERVAL MAKE_ORDERSfrom CLI flag
Practical Setup
- Put multiple strategy configs under
users:<user>:strategies:<Strategy>:config. - Run:
npx @tradejs/cli signals --user root --timeframe 15
- Optional notifications/orders:
npx @tradejs/cli signals --user root --timeframe 15 --notify --makeOrders