@backtest-kit/cli 8.4.1 → 8.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import * as BacktestKit from 'backtest-kit';
3
3
  import { setConfig, Log, listExchangeSchema, addExchangeSchema, roundTicks, listFrameSchema, addFrameSchema, listenDoneLive, listenDoneBacktest, shutdown, listenSignal, Notification, Recent, Storage, Markdown, Report, Dump, State, Memory, SessionLive, SessionBacktest, StorageLive, StorageBacktest, RecentLive, RecentBacktest, NotificationLive, NotificationBacktest, MemoryLive, MemoryBacktest, StateLive, StateBacktest, MarkdownWriter, ReportWriter, PersistSignalAdapter, PersistRiskAdapter, PersistScheduleAdapter, PersistPartialAdapter, PersistBreakevenAdapter, PersistCandleAdapter, PersistStorageAdapter, PersistNotificationAdapter, PersistLogAdapter, PersistMeasureAdapter, PersistIntervalAdapter, PersistMemoryAdapter, PersistRecentAdapter, PersistStateAdapter, PersistSessionAdapter, listStrategySchema, overrideExchangeSchema, Backtest, System, Cache, Interval, alignToInterval, addWalkerSchema, overrideWalkerSchema, Walker, listenDoneWalker, Live, getCandles, checkCandles, warmCandles, listenRisk, listenStrategyCommit, listenSync, listenSignalNotify, Exchange } from 'backtest-kit';
4
4
  import { getErrorMessage, errorData, singleshot, str, BehaviorSubject, compose, createAwaiter, execpool, queued, sleep, randomString, TIMEOUT_SYMBOL, typo, retry, trycatch, memoize, isObject } from 'functools-kit';
5
- import fs, { constants } from 'fs';
5
+ import fs, { constants, realpathSync } from 'fs';
6
6
  import * as stackTrace from 'stack-trace';
7
7
  import path, { join, resolve, dirname, basename, extname } from 'path';
8
8
  import fs$1, { access, readFile, mkdir, writeFile, rm, readdir, copyFile } from 'fs/promises';
@@ -653,7 +653,8 @@ const notifyFinish = singleshot(() => {
653
653
 
654
654
  const getEntry = (metaUrl) => {
655
655
  const metaPath = fileURLToPath(metaUrl);
656
- return path.resolve(process.argv[1]) === path.resolve(metaPath);
656
+ const realArgv = realpathSync(process.argv[1]);
657
+ return path.resolve(realArgv) === path.resolve(metaPath);
657
658
  };
658
659
 
659
660
  const notifyVerbose = singleshot(() => {
@@ -2984,10 +2985,10 @@ init();
2984
2985
 
2985
2986
  const MODES = ["backtest", "walker", "paper", "live", "pine", "editor", "dump", "pnldebug", "brokerdebug", "flush", "init", "docker", "help", "version"];
2986
2987
  const ENTRY_PATH$1 = "./node_modules/@backtest-kit/cli/build/index.mjs";
2987
- const HELP_TEXT$1 = `
2988
- Example:
2989
-
2990
- node ${ENTRY_PATH$1} --help
2988
+ const HELP_TEXT$1 = `
2989
+ Example:
2990
+
2991
+ node ${ENTRY_PATH$1} --help
2991
2992
  `.trimStart();
2992
2993
  const main$f = async () => {
2993
2994
  if (!getEntry(import.meta.url)) {
@@ -2997,7 +2998,7 @@ const main$f = async () => {
2997
2998
  if (MODES.some((mode) => values[mode])) {
2998
2999
  return;
2999
3000
  }
3000
- process.stdout.write(`@backtest-kit/cli ${"8.4.1"}\n`);
3001
+ process.stdout.write(`@backtest-kit/cli ${"8.4.3"}\n`);
3001
3002
  process.stdout.write("\n");
3002
3003
  process.stdout.write(`Run with --help to see available commands.\n`);
3003
3004
  process.stdout.write("\n");
@@ -3685,190 +3686,190 @@ const main$2 = async () => {
3685
3686
  console.log(`Done! Docker workspace created at ${projectPath}`);
3686
3687
  console.log(`Next steps:`);
3687
3688
  console.log(` cd ${projectName}`);
3688
- console.log(` docker compose up -d`);
3689
+ console.log(` MODE=live SYMBOL=TRXUSDT UI=1 docker compose up -d`);
3689
3690
  console.log(` docker compose logs -f`);
3690
3691
  process.exit(0);
3691
3692
  };
3692
3693
  main$2();
3693
3694
 
3694
3695
  const ENTRY_PATH = "./node_modules/@backtest-kit/cli/build/index.mjs";
3695
- const HELP_TEXT = `
3696
- Usage:
3697
- node index.mjs --<mode> [flags] [entry-point]
3698
-
3699
- Modes:
3700
-
3701
- --backtest <entry> Run strategy against historical candle data
3702
- --walker <entry...> Run Walker A/B strategy comparison across multiple strategies
3703
- --paper <entry> Paper trading (live prices, no real orders)
3704
- --live <entry> Live trading with real orders
3705
- --pine <entry> Execute a local .pine indicator file
3706
- --editor Open the Pine Script visual editor in the browser
3707
- --dump Fetch and save raw OHLCV candles
3708
- --pnldebug Simulate PnL per minute for a given entry price and direction
3709
- --brokerdebug Fire a single broker commit against the live broker adapter
3710
- --flush <entry...> Delete report/log/markdown/agent folders from strategy dump dir
3711
- --init Scaffold a new project in the current directory
3712
- --docker Scaffold a Docker workspace for running strategies in a container
3713
- --help Print this help message
3714
-
3715
- Backtest flags:
3716
-
3717
- --symbol <string> Trading pair (default: BTCUSDT)
3718
- --strategy <string> Strategy name from addStrategySchema (default: first registered)
3719
- --exchange <string> Exchange name from addExchangeSchema (default: first registered)
3720
- --frame <string> Frame name from addFrameSchema (default: first registered)
3721
- --cacheInterval <string> Comma-separated intervals to pre-cache (default: "1m, 15m, 30m, 4h")
3722
- --noCache Skip candle cache warming before the run
3723
- --noFlush Skip removing report/log/markdown/agent folders before backtest run
3724
- --verbose Log every candle fetch to stdout
3725
- --ui Start web dashboard at http://localhost:60050
3726
- --telegram Send trade notifications to Telegram
3727
-
3728
- Walker flags (--walker):
3729
-
3730
- --symbol <string> Trading pair (default: BTCUSDT)
3731
- --cacheInterval <string> Comma-separated intervals to pre-cache (default: "1m, 15m, 30m, 4h")
3732
- --noCache Skip candle cache warming before the run
3733
- --noFlush Skip removing report/log/markdown/agent folders before walker run
3734
- --verbose Log every candle fetch to stdout
3735
- --output <string> Output file base name (default: walker_{SYMBOL}_{TIMESTAMP})
3736
- --json Save results as JSON to ./dump/<output>.json
3737
- --markdown Save report as Markdown to ./dump/<output>.md
3738
-
3739
- Each positional argument is a strategy entry point. All strategy files are loaded without
3740
- changing process.cwd() — .env is read from the working directory only.
3741
- addWalkerSchema is called automatically using the registered exchange and frame.
3742
- After comparison completes the report is printed to stdout (or saved if --json/--markdown).
3743
-
3744
- Module file ./modules/walker.module is loaded automatically if it exists.
3745
-
3746
- Paper / Live flags:
3747
-
3748
- --symbol <string> Trading pair (default: BTCUSDT)
3749
- --strategy <string> Strategy name (default: first registered)
3750
- --exchange <string> Exchange name (default: first registered)
3751
- --verbose Log every candle fetch to stdout
3752
- --ui Start web dashboard
3753
- --telegram Send Telegram notifications
3754
-
3755
- PineScript flags (--pine):
3756
-
3757
- --symbol <string> Trading pair (default: BTCUSDT)
3758
- --timeframe <string> Candle interval (default: 15m)
3759
- --limit <string> Number of candles to fetch (default: 250)
3760
- --when <string> End date — ISO 8601 or Unix ms (default: now)
3761
- --exchange <string> Exchange name (default: first registered)
3762
- --output <string> Output file base name without extension
3763
- --json Save output as JSON array to <pine-dir>/dump/<output>.json
3764
- --jsonl Save output as JSONL to <pine-dir>/dump/<output>.jsonl
3765
- --markdown Save output as Markdown table to <pine-dir>/dump/<output>.md
3766
-
3767
- Only plot() calls with display=display.data_window produce output columns.
3768
- Module file ./modules/pine.module is loaded automatically if it exists.
3769
-
3770
- Candle dump flags (--dump):
3771
-
3772
- --symbol <string> Trading pair (default: BTCUSDT)
3773
- --timeframe <string> Candle interval (default: 15m)
3774
- --limit <string> Number of candles (default: 250)
3775
- --when <string> End date — ISO 8601 or Unix ms (default: now)
3776
- --exchange <string> Exchange name (default: first registered)
3777
- --output <string> Output file base name (default: {SYMBOL}_{LIMIT}_{TIMEFRAME}_{TIMESTAMP})
3778
- --json Save as JSON array to ./dump/<output>.json
3779
- --jsonl Save as JSONL to ./dump/<output>.jsonl
3780
-
3781
- Module file ./modules/dump.module is loaded automatically if it exists.
3782
-
3783
- PnL debug flags (--pnldebug):
3784
-
3785
- --symbol <string> Trading pair (default: BTCUSDT)
3786
- --priceopen <number> Entry price (required)
3787
- --direction <string> Position direction: long or short (default: long)
3788
- --when <string> Start timestamp — ISO 8601 or Unix ms (default: now)
3789
- --minutes <string> Number of 1m candles to simulate (default: 60)
3790
- --exchange <string> Exchange name (default: first registered)
3791
- --output <string> Output file base name (default: {SYMBOL}_{DIRECTION}_{PRICEOPEN}_{TIMESTAMP})
3792
- --json Save as JSON array to ./dump/<output>.json
3793
- --jsonl Save as JSONL to ./dump/<output>.jsonl
3794
- --markdown Save as Markdown table to ./dump/<output>.md
3795
-
3796
- Module file ./modules/pnldebug.module is loaded automatically if it exists.
3797
-
3798
- Broker debug flags (--brokerdebug):
3799
-
3800
- --symbol <string> Trading pair (default: BTCUSDT)
3801
- --exchange <string> Exchange name (default: first registered)
3802
- --commit <string> Commit type to fire: signal-open, signal-close, partial-profit,
3803
- partial-loss, average-buy, trailing-stop, trailing-take, breakeven
3804
- (default: signal-open)
3805
-
3806
- Loads ./live.module, fetches the last candle for --symbol/--timeframe, and calls
3807
- the selected broker commit with synthetic payload values derived from current price.
3808
-
3809
- Flush flags (--flush):
3810
-
3811
- One or more positional entry points. For each entry point the following
3812
- subdirectories are removed from <entry-dir>/dump/:
3813
-
3814
- report log markdown agent
3815
-
3816
- Init flags (--init):
3817
-
3818
- --output <string> Target directory name (default: backtest-kit-project)
3819
-
3820
- Scaffolds a project and runs scripts/fetch_docs.mjs to download library docs.
3821
-
3822
- Docker flags (--docker):
3823
-
3824
- --output <string> Target directory name (default: backtest-kit-docker)
3825
-
3826
- Scaffolds a Docker workspace: docker-compose.yaml, .env.example, package.json,
3827
- tsconfig.json, and a sample strategy under content/. Run npm install then
3828
- docker compose up to start the container.
3829
-
3830
- Module hooks (loaded automatically by each mode):
3831
-
3832
- modules/backtest.module --backtest Broker adapter for backtest
3833
- modules/walker.module --walker Broker adapter for walker comparison
3834
- modules/paper.module --paper Broker adapter for paper trading
3835
- modules/live.module --live Broker adapter for live trading
3836
- modules/pine.module --pine Exchange schema for PineScript runs
3837
- modules/editor.module --editor Exchange schema for the visual Pine editor
3838
- modules/dump.module --dump Exchange schema for candle dumps
3839
- modules/pnldebug.module --pnldebug Exchange schema for PnL debug runs
3840
- modules/brokerdebug.module --brokerdebug Broker adapter used for broker commit testing
3841
-
3842
- --flush has no associated module. It only removes dump subdirectories.
3843
-
3844
- Extensions .ts, .mjs, .cjs are tried automatically. Missing module = soft warning.
3845
-
3846
- Environment variables:
3847
-
3848
- CC_TELEGRAM_TOKEN Telegram bot token (required for --telegram)
3849
- CC_TELEGRAM_CHANNEL Telegram channel or chat ID (required for --telegram)
3850
- CC_WWWROOT_HOST UI server bind address (default: 0.0.0.0)
3851
- CC_WWWROOT_PORT UI server port (default: 60050)
3852
-
3853
- Examples:
3854
-
3855
- node ${ENTRY_PATH} --backtest ./content/feb_2026.strategy.ts
3856
- node ${ENTRY_PATH} --backtest --symbol BTCUSDT --noCache --noFlush --ui ./content/feb_2026.strategy.ts
3857
- node ${ENTRY_PATH} --walker ./content/feb_2026_v1.strategy.ts ./content/feb_2026_v2.strategy.ts ./content/feb_2026_v3.strategy.ts
3858
- node ${ENTRY_PATH} --walker --symbol BTCUSDT --noCache --noFlush --markdown ./content/feb_2026_v1.ts ./content/feb_2026_v2.ts
3859
- node ${ENTRY_PATH} --paper --symbol ETHUSDT ./content/feb_2026.strategy.ts
3860
- node ${ENTRY_PATH} --live --ui --telegram ./content/feb_2026.strategy.ts
3861
- node ${ENTRY_PATH} --pine ./math/feb_2026.pine --timeframe 15m --limit 500 --jsonl
3862
- node ${ENTRY_PATH} --editor
3863
- node ${ENTRY_PATH} --dump --symbol BTCUSDT --timeframe 15m --limit 500 --jsonl
3864
- node ${ENTRY_PATH} --pnldebug --symbol BTCUSDT --priceopen 64069.50 --direction short --when "2025-02-25" --minutes 120
3865
- node ${ENTRY_PATH} --pnldebug --priceopen 67956.73 --direction long --when 1772064000000 --minutes 60 --markdown
3866
- node ${ENTRY_PATH} --brokerdebug --commit signal-open --symbol BTCUSDT
3867
- node ${ENTRY_PATH} --brokerdebug --commit partial-profit --symbol ETHUSDT
3868
- node ${ENTRY_PATH} --flush ./content/feb_2026.strategy/feb_2026.strategy.ts
3869
- node ${ENTRY_PATH} --flush ./content/feb_2026.strategy/feb_2026.strategy.ts ./content/feb_2026.strategy/feb_2026.test.ts
3870
- node ${ENTRY_PATH} --init --output my-trading-bot
3871
- node ${ENTRY_PATH} --docker --output my-docker-workspace
3696
+ const HELP_TEXT = `
3697
+ Usage:
3698
+ node index.mjs --<mode> [flags] [entry-point]
3699
+
3700
+ Modes:
3701
+
3702
+ --backtest <entry> Run strategy against historical candle data
3703
+ --walker <entry...> Run Walker A/B strategy comparison across multiple strategies
3704
+ --paper <entry> Paper trading (live prices, no real orders)
3705
+ --live <entry> Live trading with real orders
3706
+ --pine <entry> Execute a local .pine indicator file
3707
+ --editor Open the Pine Script visual editor in the browser
3708
+ --dump Fetch and save raw OHLCV candles
3709
+ --pnldebug Simulate PnL per minute for a given entry price and direction
3710
+ --brokerdebug Fire a single broker commit against the live broker adapter
3711
+ --flush <entry...> Delete report/log/markdown/agent folders from strategy dump dir
3712
+ --init Scaffold a new project in the current directory
3713
+ --docker Scaffold a Docker workspace for running strategies in a container
3714
+ --help Print this help message
3715
+
3716
+ Backtest flags:
3717
+
3718
+ --symbol <string> Trading pair (default: BTCUSDT)
3719
+ --strategy <string> Strategy name from addStrategySchema (default: first registered)
3720
+ --exchange <string> Exchange name from addExchangeSchema (default: first registered)
3721
+ --frame <string> Frame name from addFrameSchema (default: first registered)
3722
+ --cacheInterval <string> Comma-separated intervals to pre-cache (default: "1m, 15m, 30m, 4h")
3723
+ --noCache Skip candle cache warming before the run
3724
+ --noFlush Skip removing report/log/markdown/agent folders before backtest run
3725
+ --verbose Log every candle fetch to stdout
3726
+ --ui Start web dashboard at http://localhost:60050
3727
+ --telegram Send trade notifications to Telegram
3728
+
3729
+ Walker flags (--walker):
3730
+
3731
+ --symbol <string> Trading pair (default: BTCUSDT)
3732
+ --cacheInterval <string> Comma-separated intervals to pre-cache (default: "1m, 15m, 30m, 4h")
3733
+ --noCache Skip candle cache warming before the run
3734
+ --noFlush Skip removing report/log/markdown/agent folders before walker run
3735
+ --verbose Log every candle fetch to stdout
3736
+ --output <string> Output file base name (default: walker_{SYMBOL}_{TIMESTAMP})
3737
+ --json Save results as JSON to ./dump/<output>.json
3738
+ --markdown Save report as Markdown to ./dump/<output>.md
3739
+
3740
+ Each positional argument is a strategy entry point. All strategy files are loaded without
3741
+ changing process.cwd() — .env is read from the working directory only.
3742
+ addWalkerSchema is called automatically using the registered exchange and frame.
3743
+ After comparison completes the report is printed to stdout (or saved if --json/--markdown).
3744
+
3745
+ Module file ./modules/walker.module is loaded automatically if it exists.
3746
+
3747
+ Paper / Live flags:
3748
+
3749
+ --symbol <string> Trading pair (default: BTCUSDT)
3750
+ --strategy <string> Strategy name (default: first registered)
3751
+ --exchange <string> Exchange name (default: first registered)
3752
+ --verbose Log every candle fetch to stdout
3753
+ --ui Start web dashboard
3754
+ --telegram Send Telegram notifications
3755
+
3756
+ PineScript flags (--pine):
3757
+
3758
+ --symbol <string> Trading pair (default: BTCUSDT)
3759
+ --timeframe <string> Candle interval (default: 15m)
3760
+ --limit <string> Number of candles to fetch (default: 250)
3761
+ --when <string> End date — ISO 8601 or Unix ms (default: now)
3762
+ --exchange <string> Exchange name (default: first registered)
3763
+ --output <string> Output file base name without extension
3764
+ --json Save output as JSON array to <pine-dir>/dump/<output>.json
3765
+ --jsonl Save output as JSONL to <pine-dir>/dump/<output>.jsonl
3766
+ --markdown Save output as Markdown table to <pine-dir>/dump/<output>.md
3767
+
3768
+ Only plot() calls with display=display.data_window produce output columns.
3769
+ Module file ./modules/pine.module is loaded automatically if it exists.
3770
+
3771
+ Candle dump flags (--dump):
3772
+
3773
+ --symbol <string> Trading pair (default: BTCUSDT)
3774
+ --timeframe <string> Candle interval (default: 15m)
3775
+ --limit <string> Number of candles (default: 250)
3776
+ --when <string> End date — ISO 8601 or Unix ms (default: now)
3777
+ --exchange <string> Exchange name (default: first registered)
3778
+ --output <string> Output file base name (default: {SYMBOL}_{LIMIT}_{TIMEFRAME}_{TIMESTAMP})
3779
+ --json Save as JSON array to ./dump/<output>.json
3780
+ --jsonl Save as JSONL to ./dump/<output>.jsonl
3781
+
3782
+ Module file ./modules/dump.module is loaded automatically if it exists.
3783
+
3784
+ PnL debug flags (--pnldebug):
3785
+
3786
+ --symbol <string> Trading pair (default: BTCUSDT)
3787
+ --priceopen <number> Entry price (required)
3788
+ --direction <string> Position direction: long or short (default: long)
3789
+ --when <string> Start timestamp — ISO 8601 or Unix ms (default: now)
3790
+ --minutes <string> Number of 1m candles to simulate (default: 60)
3791
+ --exchange <string> Exchange name (default: first registered)
3792
+ --output <string> Output file base name (default: {SYMBOL}_{DIRECTION}_{PRICEOPEN}_{TIMESTAMP})
3793
+ --json Save as JSON array to ./dump/<output>.json
3794
+ --jsonl Save as JSONL to ./dump/<output>.jsonl
3795
+ --markdown Save as Markdown table to ./dump/<output>.md
3796
+
3797
+ Module file ./modules/pnldebug.module is loaded automatically if it exists.
3798
+
3799
+ Broker debug flags (--brokerdebug):
3800
+
3801
+ --symbol <string> Trading pair (default: BTCUSDT)
3802
+ --exchange <string> Exchange name (default: first registered)
3803
+ --commit <string> Commit type to fire: signal-open, signal-close, partial-profit,
3804
+ partial-loss, average-buy, trailing-stop, trailing-take, breakeven
3805
+ (default: signal-open)
3806
+
3807
+ Loads ./live.module, fetches the last candle for --symbol/--timeframe, and calls
3808
+ the selected broker commit with synthetic payload values derived from current price.
3809
+
3810
+ Flush flags (--flush):
3811
+
3812
+ One or more positional entry points. For each entry point the following
3813
+ subdirectories are removed from <entry-dir>/dump/:
3814
+
3815
+ report log markdown agent
3816
+
3817
+ Init flags (--init):
3818
+
3819
+ --output <string> Target directory name (default: backtest-kit-project)
3820
+
3821
+ Scaffolds a project and runs scripts/fetch_docs.mjs to download library docs.
3822
+
3823
+ Docker flags (--docker):
3824
+
3825
+ --output <string> Target directory name (default: backtest-kit-docker)
3826
+
3827
+ Scaffolds a Docker workspace: docker-compose.yaml, .env.example, package.json,
3828
+ tsconfig.json, and a sample strategy under content/. Run npm install then
3829
+ docker compose up to start the container.
3830
+
3831
+ Module hooks (loaded automatically by each mode):
3832
+
3833
+ modules/backtest.module --backtest Broker adapter for backtest
3834
+ modules/walker.module --walker Broker adapter for walker comparison
3835
+ modules/paper.module --paper Broker adapter for paper trading
3836
+ modules/live.module --live Broker adapter for live trading
3837
+ modules/pine.module --pine Exchange schema for PineScript runs
3838
+ modules/editor.module --editor Exchange schema for the visual Pine editor
3839
+ modules/dump.module --dump Exchange schema for candle dumps
3840
+ modules/pnldebug.module --pnldebug Exchange schema for PnL debug runs
3841
+ modules/brokerdebug.module --brokerdebug Broker adapter used for broker commit testing
3842
+
3843
+ --flush has no associated module. It only removes dump subdirectories.
3844
+
3845
+ Extensions .ts, .mjs, .cjs are tried automatically. Missing module = soft warning.
3846
+
3847
+ Environment variables:
3848
+
3849
+ CC_TELEGRAM_TOKEN Telegram bot token (required for --telegram)
3850
+ CC_TELEGRAM_CHANNEL Telegram channel or chat ID (required for --telegram)
3851
+ CC_WWWROOT_HOST UI server bind address (default: 0.0.0.0)
3852
+ CC_WWWROOT_PORT UI server port (default: 60050)
3853
+
3854
+ Examples:
3855
+
3856
+ node ${ENTRY_PATH} --backtest ./content/feb_2026.strategy.ts
3857
+ node ${ENTRY_PATH} --backtest --symbol BTCUSDT --noCache --noFlush --ui ./content/feb_2026.strategy.ts
3858
+ node ${ENTRY_PATH} --walker ./content/feb_2026_v1.strategy.ts ./content/feb_2026_v2.strategy.ts ./content/feb_2026_v3.strategy.ts
3859
+ node ${ENTRY_PATH} --walker --symbol BTCUSDT --noCache --noFlush --markdown ./content/feb_2026_v1.ts ./content/feb_2026_v2.ts
3860
+ node ${ENTRY_PATH} --paper --symbol ETHUSDT ./content/feb_2026.strategy.ts
3861
+ node ${ENTRY_PATH} --live --ui --telegram ./content/feb_2026.strategy.ts
3862
+ node ${ENTRY_PATH} --pine ./math/feb_2026.pine --timeframe 15m --limit 500 --jsonl
3863
+ node ${ENTRY_PATH} --editor
3864
+ node ${ENTRY_PATH} --dump --symbol BTCUSDT --timeframe 15m --limit 500 --jsonl
3865
+ node ${ENTRY_PATH} --pnldebug --symbol BTCUSDT --priceopen 64069.50 --direction short --when "2025-02-25" --minutes 120
3866
+ node ${ENTRY_PATH} --pnldebug --priceopen 67956.73 --direction long --when 1772064000000 --minutes 60 --markdown
3867
+ node ${ENTRY_PATH} --brokerdebug --commit signal-open --symbol BTCUSDT
3868
+ node ${ENTRY_PATH} --brokerdebug --commit partial-profit --symbol ETHUSDT
3869
+ node ${ENTRY_PATH} --flush ./content/feb_2026.strategy/feb_2026.strategy.ts
3870
+ node ${ENTRY_PATH} --flush ./content/feb_2026.strategy/feb_2026.strategy.ts ./content/feb_2026.strategy/feb_2026.test.ts
3871
+ node ${ENTRY_PATH} --init --output my-trading-bot
3872
+ node ${ENTRY_PATH} --docker --output my-docker-workspace
3872
3873
  `.trimStart();
3873
3874
  const main$1 = async () => {
3874
3875
  if (!getEntry(import.meta.url)) {
@@ -3878,7 +3879,7 @@ const main$1 = async () => {
3878
3879
  if (!values.help) {
3879
3880
  return;
3880
3881
  }
3881
- process.stdout.write(`@backtest-kit/cli ${"8.4.1"}\n\n`);
3882
+ process.stdout.write(`@backtest-kit/cli ${"8.4.3"}\n\n`);
3882
3883
  process.stdout.write(HELP_TEXT);
3883
3884
  process.exit(0);
3884
3885
  };
@@ -3892,7 +3893,7 @@ const main = async () => {
3892
3893
  if (!values.version) {
3893
3894
  return;
3894
3895
  }
3895
- process.stdout.write(`@backtest-kit/cli ${"8.4.1"}\n`);
3896
+ process.stdout.write(`@backtest-kit/cli ${"8.4.3"}\n`);
3896
3897
  process.exit(0);
3897
3898
  };
3898
3899
  main();
@@ -1,13 +1,13 @@
1
- export default {
2
- signal: true,
3
- risk: true,
4
- info: true,
5
- breakeven: true,
6
- common_error: true,
7
- critical_error: true,
8
- validation_error: true,
9
- partial_loss: false,
10
- partial_profit: false,
11
- signal_sync: false,
12
- strategy_commit: true,
13
- };
1
+ export default {
2
+ signal: true,
3
+ risk: true,
4
+ info: true,
5
+ breakeven: true,
6
+ common_error: true,
7
+ critical_error: true,
8
+ validation_error: true,
9
+ partial_loss: false,
10
+ partial_profit: false,
11
+ signal_sync: false,
12
+ strategy_commit: true,
13
+ };