backtest-kit 11.8.0 → 12.0.0
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/LICENSE +21 -21
- package/README.md +1996 -1996
- package/build/index.cjs +661 -136
- package/build/index.mjs +660 -137
- package/package.json +86 -86
- package/types.d.ts +199 -40
package/package.json
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "backtest-kit",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "A TypeScript library for trading system backtest",
|
|
5
|
-
"author": {
|
|
6
|
-
"name": "Petr Tripolsky",
|
|
7
|
-
"email": "tripolskypetr@gmail.com",
|
|
8
|
-
"url": "https://github.com/tripolskypetr"
|
|
9
|
-
},
|
|
10
|
-
"funding": {
|
|
11
|
-
"type": "individual",
|
|
12
|
-
"url": "http://paypal.me/tripolskypetr"
|
|
13
|
-
},
|
|
14
|
-
"license": "MIT",
|
|
15
|
-
"homepage": "https://backtest-kit.github.io/documents/article_07_ai_news_trading_signals.html",
|
|
16
|
-
"keywords": [
|
|
17
|
-
"backtesting",
|
|
18
|
-
"backtest",
|
|
19
|
-
"finance",
|
|
20
|
-
"trading",
|
|
21
|
-
"candles",
|
|
22
|
-
"indicators",
|
|
23
|
-
"multi value",
|
|
24
|
-
"multi symbol",
|
|
25
|
-
"framework"
|
|
26
|
-
],
|
|
27
|
-
"files": [
|
|
28
|
-
"build",
|
|
29
|
-
"types.d.ts",
|
|
30
|
-
"README.md"
|
|
31
|
-
],
|
|
32
|
-
"repository": {
|
|
33
|
-
"type": "git",
|
|
34
|
-
"url": "https://github.com/tripolskypetr/backtest-kit",
|
|
35
|
-
"documentation": "https://github.com/tripolskypetr/backtest-kit/tree/master/docs"
|
|
36
|
-
},
|
|
37
|
-
"bugs": {
|
|
38
|
-
"url": "https://github.com/tripolskypetr/backtest-kit/issues"
|
|
39
|
-
},
|
|
40
|
-
"scripts": {
|
|
41
|
-
"build": "rollup -c",
|
|
42
|
-
"test": "npm run build && node ./test/index.mjs",
|
|
43
|
-
"build:docs": "rimraf docs && mkdir docs && node ./scripts/dts-docs.cjs ./types.d.ts ./docs",
|
|
44
|
-
"docs:gpt": "npm run build && node ./tools/gpt-docs/index.mjs",
|
|
45
|
-
"docs:uml": "npm run build && node ./scripts/uml.mjs",
|
|
46
|
-
"docs:www": "rimraf docs/wwwroot && node ./tools/typedoc-packages-docs/index.mjs && typedoc && node ./tools/typedoc-yandex-metrica/index.mjs",
|
|
47
|
-
"repl": "dotenv -e .env -- npm run build && node -e \"import('./scripts/repl.mjs')\" --interactive"
|
|
48
|
-
},
|
|
49
|
-
"main": "build/index.cjs",
|
|
50
|
-
"module": "build/index.mjs",
|
|
51
|
-
"source": "src/index.ts",
|
|
52
|
-
"types": "./types.d.ts",
|
|
53
|
-
"exports": {
|
|
54
|
-
"require": "./build/index.cjs",
|
|
55
|
-
"types": "./types.d.ts",
|
|
56
|
-
"import": "./build/index.mjs",
|
|
57
|
-
"default": "./build/index.cjs"
|
|
58
|
-
},
|
|
59
|
-
"devDependencies": {
|
|
60
|
-
"@rollup/plugin-typescript": "11.1.6",
|
|
61
|
-
"@types/node": "22.9.0",
|
|
62
|
-
"glob": "11.0.1",
|
|
63
|
-
"plantuml": "0.0.2",
|
|
64
|
-
"rimraf": "6.0.1",
|
|
65
|
-
"rollup": "3.29.5",
|
|
66
|
-
"rollup-plugin-dts": "6.1.1",
|
|
67
|
-
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
68
|
-
"ts-morph": "27.0.2",
|
|
69
|
-
"tslib": "2.7.0",
|
|
70
|
-
"typedoc": "0.27.9",
|
|
71
|
-
"worker-testbed": "2.0.0"
|
|
72
|
-
},
|
|
73
|
-
"peerDependencies": {
|
|
74
|
-
"typescript": "^5.0.0"
|
|
75
|
-
},
|
|
76
|
-
"dependencies": {
|
|
77
|
-
"di-kit": "^1.1.1",
|
|
78
|
-
"di-scoped": "^1.0.21",
|
|
79
|
-
"di-singleton": "^1.0.5",
|
|
80
|
-
"functools-kit": "^2.3.0",
|
|
81
|
-
"get-moment-stamp": "^2.0.0"
|
|
82
|
-
},
|
|
83
|
-
"publishConfig": {
|
|
84
|
-
"access": "public"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "backtest-kit",
|
|
3
|
+
"version": "12.0.0",
|
|
4
|
+
"description": "A TypeScript library for trading system backtest",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Petr Tripolsky",
|
|
7
|
+
"email": "tripolskypetr@gmail.com",
|
|
8
|
+
"url": "https://github.com/tripolskypetr"
|
|
9
|
+
},
|
|
10
|
+
"funding": {
|
|
11
|
+
"type": "individual",
|
|
12
|
+
"url": "http://paypal.me/tripolskypetr"
|
|
13
|
+
},
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"homepage": "https://backtest-kit.github.io/documents/article_07_ai_news_trading_signals.html",
|
|
16
|
+
"keywords": [
|
|
17
|
+
"backtesting",
|
|
18
|
+
"backtest",
|
|
19
|
+
"finance",
|
|
20
|
+
"trading",
|
|
21
|
+
"candles",
|
|
22
|
+
"indicators",
|
|
23
|
+
"multi value",
|
|
24
|
+
"multi symbol",
|
|
25
|
+
"framework"
|
|
26
|
+
],
|
|
27
|
+
"files": [
|
|
28
|
+
"build",
|
|
29
|
+
"types.d.ts",
|
|
30
|
+
"README.md"
|
|
31
|
+
],
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/tripolskypetr/backtest-kit",
|
|
35
|
+
"documentation": "https://github.com/tripolskypetr/backtest-kit/tree/master/docs"
|
|
36
|
+
},
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/tripolskypetr/backtest-kit/issues"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "rollup -c",
|
|
42
|
+
"test": "npm run build && node ./test/index.mjs",
|
|
43
|
+
"build:docs": "rimraf docs && mkdir docs && node ./scripts/dts-docs.cjs ./types.d.ts ./docs",
|
|
44
|
+
"docs:gpt": "npm run build && node ./tools/gpt-docs/index.mjs",
|
|
45
|
+
"docs:uml": "npm run build && node ./scripts/uml.mjs",
|
|
46
|
+
"docs:www": "rimraf docs/wwwroot && node ./tools/typedoc-packages-docs/index.mjs && typedoc && node ./tools/typedoc-yandex-metrica/index.mjs",
|
|
47
|
+
"repl": "dotenv -e .env -- npm run build && node -e \"import('./scripts/repl.mjs')\" --interactive"
|
|
48
|
+
},
|
|
49
|
+
"main": "build/index.cjs",
|
|
50
|
+
"module": "build/index.mjs",
|
|
51
|
+
"source": "src/index.ts",
|
|
52
|
+
"types": "./types.d.ts",
|
|
53
|
+
"exports": {
|
|
54
|
+
"require": "./build/index.cjs",
|
|
55
|
+
"types": "./types.d.ts",
|
|
56
|
+
"import": "./build/index.mjs",
|
|
57
|
+
"default": "./build/index.cjs"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@rollup/plugin-typescript": "11.1.6",
|
|
61
|
+
"@types/node": "22.9.0",
|
|
62
|
+
"glob": "11.0.1",
|
|
63
|
+
"plantuml": "0.0.2",
|
|
64
|
+
"rimraf": "6.0.1",
|
|
65
|
+
"rollup": "3.29.5",
|
|
66
|
+
"rollup-plugin-dts": "6.1.1",
|
|
67
|
+
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
68
|
+
"ts-morph": "27.0.2",
|
|
69
|
+
"tslib": "2.7.0",
|
|
70
|
+
"typedoc": "0.27.9",
|
|
71
|
+
"worker-testbed": "2.0.0"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"typescript": "^5.0.0"
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"di-kit": "^1.1.1",
|
|
78
|
+
"di-scoped": "^1.0.21",
|
|
79
|
+
"di-singleton": "^1.0.5",
|
|
80
|
+
"functools-kit": "^2.3.0",
|
|
81
|
+
"get-moment-stamp": "^2.0.0"
|
|
82
|
+
},
|
|
83
|
+
"publishConfig": {
|
|
84
|
+
"access": "public"
|
|
85
|
+
}
|
|
86
|
+
}
|
package/types.d.ts
CHANGED
|
@@ -73,6 +73,8 @@ type FrameInterval = "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "
|
|
|
73
73
|
interface IFrameParams extends IFrameSchema {
|
|
74
74
|
/** Logger service for debug output */
|
|
75
75
|
logger: ILogger;
|
|
76
|
+
/** Frame name for identification */
|
|
77
|
+
interval: FrameInterval;
|
|
76
78
|
}
|
|
77
79
|
/**
|
|
78
80
|
* Callbacks for frame lifecycle events.
|
|
@@ -113,8 +115,8 @@ interface IFrameSchema {
|
|
|
113
115
|
frameName: FrameName;
|
|
114
116
|
/** Optional developer note for documentation */
|
|
115
117
|
note?: string;
|
|
116
|
-
/** Interval for
|
|
117
|
-
interval
|
|
118
|
+
/** Interval for time range generation. Defaults to "1m" if not specified */
|
|
119
|
+
interval?: FrameInterval;
|
|
118
120
|
/** Start of backtest period (inclusive) */
|
|
119
121
|
startDate: Date;
|
|
120
122
|
/** End of backtest period (inclusive) */
|
|
@@ -4669,6 +4671,24 @@ interface BacktestStatisticsModel {
|
|
|
4669
4671
|
avgWinDuration: number | null;
|
|
4670
4672
|
/** Average duration in minutes of losing trades. */
|
|
4671
4673
|
avgLossDuration: number | null;
|
|
4674
|
+
/** Median |close[i] - close[i-1]| / close[i-1] across trade closes, in %. Robust to outliers. */
|
|
4675
|
+
medianStepSize: number | null;
|
|
4676
|
+
/** Fraction of up-moves among decisive close-to-close moves. 0..1. Higher = buyers more frequent. */
|
|
4677
|
+
buyerPressure: number | null;
|
|
4678
|
+
/** Fraction of down-moves among decisive moves. 0..1. Equals 1 - buyerPressure. */
|
|
4679
|
+
sellerPressure: number | null;
|
|
4680
|
+
/** Share of upward absolute movement in total close-to-close movement. 0..1. */
|
|
4681
|
+
buyerStrength: number | null;
|
|
4682
|
+
/** Share of downward absolute movement in total close-to-close movement. 0..1. */
|
|
4683
|
+
sellerStrength: number | null;
|
|
4684
|
+
/** buyerStrength - sellerStrength ∈ [-1, 1]. Positive = bullish bias on magnitude. */
|
|
4685
|
+
pressureImbalance: number | null;
|
|
4686
|
+
/** Bivariate trend classification (slope × R²). */
|
|
4687
|
+
trend: "bullish" | "bearish" | "sideways" | "neutral" | null;
|
|
4688
|
+
/** Log-price regression slope, in %/day. */
|
|
4689
|
+
trendStrength: number | null;
|
|
4690
|
+
/** R² of the log-price regression, in [0, 1]. */
|
|
4691
|
+
trendConfidence: number | null;
|
|
4672
4692
|
}
|
|
4673
4693
|
|
|
4674
4694
|
/**
|
|
@@ -9718,6 +9738,42 @@ declare function getNextCandles(symbol: string, interval: CandleInterval, limit:
|
|
|
9718
9738
|
*/
|
|
9719
9739
|
declare function getAggregatedTrades(symbol: string, limit?: number): Promise<IAggregatedTradeData[]>;
|
|
9720
9740
|
|
|
9741
|
+
/**
|
|
9742
|
+
* Interface for runtime information and range used in backtesting and strategy execution.
|
|
9743
|
+
* The interface defines the time range for the backtest while executing a strategy in backtest mode
|
|
9744
|
+
*/
|
|
9745
|
+
interface IRuntimeRange {
|
|
9746
|
+
/** Start date of the runtime range */
|
|
9747
|
+
from: Date;
|
|
9748
|
+
/** End date of the runtime range */
|
|
9749
|
+
to: Date;
|
|
9750
|
+
}
|
|
9751
|
+
/**
|
|
9752
|
+
* Interface for runtime information returned by the RuntimeMetaService.
|
|
9753
|
+
* This includes the symbol being traded, the time range of the backtest, any additional info defined by the strategy,
|
|
9754
|
+
* and contextual information about the exchange, strategy, and frame being used.
|
|
9755
|
+
*/
|
|
9756
|
+
interface IRuntimeInfo<Data extends RuntimeData = RuntimeData> {
|
|
9757
|
+
/** Trading pair symbol (e.g., "BTCUSDT") */
|
|
9758
|
+
symbol: string;
|
|
9759
|
+
/** Time range for the backtest, null if running in live mode */
|
|
9760
|
+
range: IRuntimeRange | null;
|
|
9761
|
+
/** Additional runtime information defined by the strategy, can be used for custom monitoring or reporting */
|
|
9762
|
+
info: Data | null;
|
|
9763
|
+
/** Contextual information about the current execution environment */
|
|
9764
|
+
context: {
|
|
9765
|
+
exchangeName: ExchangeName;
|
|
9766
|
+
strategyName: StrategyName;
|
|
9767
|
+
frameName: FrameName;
|
|
9768
|
+
};
|
|
9769
|
+
/** Timestamp of the current candle or tick */
|
|
9770
|
+
when: Date;
|
|
9771
|
+
/** Current market price for the symbol at the time of execution */
|
|
9772
|
+
currentPrice: number;
|
|
9773
|
+
/** Whether the strategy is running in backtest mode */
|
|
9774
|
+
backtest: boolean;
|
|
9775
|
+
}
|
|
9776
|
+
|
|
9721
9777
|
/**
|
|
9722
9778
|
* Gets the current date from execution context.
|
|
9723
9779
|
*
|
|
@@ -9792,6 +9848,30 @@ declare function getSymbol(): Promise<string>;
|
|
|
9792
9848
|
* ```
|
|
9793
9849
|
*/
|
|
9794
9850
|
declare function getContext(): Promise<IMethodContext>;
|
|
9851
|
+
/**
|
|
9852
|
+
* Gets runtime information about the current execution environment.
|
|
9853
|
+
*
|
|
9854
|
+
* This includes details such as the current symbol, exchange, timeframe, strategy, and whether it's a backtest or live run.
|
|
9855
|
+
*
|
|
9856
|
+
* @returns Promise resolving to an object containing runtime information
|
|
9857
|
+
* @throws Error if method context or execution context is not active
|
|
9858
|
+
*
|
|
9859
|
+
* @example
|
|
9860
|
+
* ```typescript
|
|
9861
|
+
* const runtimeInfo = await getRuntimeInfo();
|
|
9862
|
+
* console.log(runtimeInfo);
|
|
9863
|
+
* // {
|
|
9864
|
+
* // symbol: "BTCUSDT",
|
|
9865
|
+
* // context: {,
|
|
9866
|
+
* // exchangeName: "Binance",
|
|
9867
|
+
* // frameName: "1m",
|
|
9868
|
+
* // strategyName: "MyStrategy",
|
|
9869
|
+
* // },
|
|
9870
|
+
* // backtest: false
|
|
9871
|
+
* // }
|
|
9872
|
+
* ```
|
|
9873
|
+
*/
|
|
9874
|
+
declare function getRuntimeInfo<Data extends RuntimeData = RuntimeData>(): Promise<IRuntimeInfo<Data>>;
|
|
9795
9875
|
|
|
9796
9876
|
type Dispatch$1<Value extends object = object> = (value: Value) => Value | Promise<Value>;
|
|
9797
9877
|
/**
|
|
@@ -10790,6 +10870,24 @@ interface IHeatmapRow {
|
|
|
10790
10870
|
expectedYearlyReturns: number | null;
|
|
10791
10871
|
/** Observed trade frequency extrapolated to one year (signals × 365 / calendarSpanDays). */
|
|
10792
10872
|
tradesPerYear: number | null;
|
|
10873
|
+
/** Median |close[i] - close[i-1]| / close[i-1] across trade closes, in %. Robust to outliers. */
|
|
10874
|
+
medianStepSize: number | null;
|
|
10875
|
+
/** Fraction of up-moves among decisive close-to-close moves. 0..1. Higher = buyers more frequent. */
|
|
10876
|
+
buyerPressure: number | null;
|
|
10877
|
+
/** Fraction of down-moves among decisive moves. 0..1. Equals 1 - buyerPressure. */
|
|
10878
|
+
sellerPressure: number | null;
|
|
10879
|
+
/** Share of upward absolute movement in total close-to-close movement. 0..1. */
|
|
10880
|
+
buyerStrength: number | null;
|
|
10881
|
+
/** Share of downward absolute movement in total close-to-close movement. 0..1. */
|
|
10882
|
+
sellerStrength: number | null;
|
|
10883
|
+
/** buyerStrength - sellerStrength ∈ [-1, 1]. Positive = bullish bias on magnitude. */
|
|
10884
|
+
pressureImbalance: number | null;
|
|
10885
|
+
/** Bivariate trend classification (slope × R²). */
|
|
10886
|
+
trend: "bullish" | "bearish" | "sideways" | "neutral" | null;
|
|
10887
|
+
/** Log-price regression slope, in %/day. */
|
|
10888
|
+
trendStrength: number | null;
|
|
10889
|
+
/** R² of the log-price regression, in [0, 1]. */
|
|
10890
|
+
trendConfidence: number | null;
|
|
10793
10891
|
}
|
|
10794
10892
|
|
|
10795
10893
|
/**
|
|
@@ -12682,6 +12780,24 @@ interface LiveStatisticsModel {
|
|
|
12682
12780
|
avgWinDuration: number | null;
|
|
12683
12781
|
/** Average duration in minutes of losing trades. */
|
|
12684
12782
|
avgLossDuration: number | null;
|
|
12783
|
+
/** Median |close[i] - close[i-1]| / close[i-1] across trade closes, in %. Robust to outliers. */
|
|
12784
|
+
medianStepSize: number | null;
|
|
12785
|
+
/** Fraction of up-moves among decisive close-to-close moves. 0..1. Higher = buyers more frequent. */
|
|
12786
|
+
buyerPressure: number | null;
|
|
12787
|
+
/** Fraction of down-moves among decisive moves. 0..1. Equals 1 - buyerPressure. */
|
|
12788
|
+
sellerPressure: number | null;
|
|
12789
|
+
/** Share of upward absolute movement in total close-to-close movement. 0..1. */
|
|
12790
|
+
buyerStrength: number | null;
|
|
12791
|
+
/** Share of downward absolute movement in total close-to-close movement. 0..1. */
|
|
12792
|
+
sellerStrength: number | null;
|
|
12793
|
+
/** buyerStrength - sellerStrength ∈ [-1, 1]. Positive = bullish bias on magnitude. */
|
|
12794
|
+
pressureImbalance: number | null;
|
|
12795
|
+
/** Bivariate trend classification (slope × R²). */
|
|
12796
|
+
trend: "bullish" | "bearish" | "sideways" | "neutral" | null;
|
|
12797
|
+
/** Log-price regression slope, in %/day. */
|
|
12798
|
+
trendStrength: number | null;
|
|
12799
|
+
/** R² of the log-price regression, in [0, 1]. */
|
|
12800
|
+
trendConfidence: number | null;
|
|
12685
12801
|
}
|
|
12686
12802
|
|
|
12687
12803
|
/**
|
|
@@ -26250,42 +26366,6 @@ declare class IntervalUtils {
|
|
|
26250
26366
|
*/
|
|
26251
26367
|
declare const Interval: IntervalUtils;
|
|
26252
26368
|
|
|
26253
|
-
/**
|
|
26254
|
-
* Interface for runtime information and range used in backtesting and strategy execution.
|
|
26255
|
-
* The interface defines the time range for the backtest while executing a strategy in backtest mode
|
|
26256
|
-
*/
|
|
26257
|
-
interface IRuntimeRange {
|
|
26258
|
-
/** Start date of the runtime range */
|
|
26259
|
-
from: Date;
|
|
26260
|
-
/** End date of the runtime range */
|
|
26261
|
-
to: Date;
|
|
26262
|
-
}
|
|
26263
|
-
/**
|
|
26264
|
-
* Interface for runtime information returned by the RuntimeMetaService.
|
|
26265
|
-
* This includes the symbol being traded, the time range of the backtest, any additional info defined by the strategy,
|
|
26266
|
-
* and contextual information about the exchange, strategy, and frame being used.
|
|
26267
|
-
*/
|
|
26268
|
-
interface IRuntimeInfo<Data extends RuntimeData = RuntimeData> {
|
|
26269
|
-
/** Trading pair symbol (e.g., "BTCUSDT") */
|
|
26270
|
-
symbol: string;
|
|
26271
|
-
/** Time range for the backtest, null if running in live mode */
|
|
26272
|
-
range: IRuntimeRange | null;
|
|
26273
|
-
/** Additional runtime information defined by the strategy, can be used for custom monitoring or reporting */
|
|
26274
|
-
info: Data | null;
|
|
26275
|
-
/** Contextual information about the current execution environment */
|
|
26276
|
-
context: {
|
|
26277
|
-
exchangeName: ExchangeName;
|
|
26278
|
-
strategyName: StrategyName;
|
|
26279
|
-
frameName: FrameName;
|
|
26280
|
-
};
|
|
26281
|
-
/** Timestamp of the current candle or tick */
|
|
26282
|
-
when: Date;
|
|
26283
|
-
/** Current market price for the symbol at the time of execution */
|
|
26284
|
-
currentPrice: number;
|
|
26285
|
-
/** Whether the strategy is running in backtest mode */
|
|
26286
|
-
backtest: boolean;
|
|
26287
|
-
}
|
|
26288
|
-
|
|
26289
26369
|
/**
|
|
26290
26370
|
* Callback signature for a cron entry handler.
|
|
26291
26371
|
*
|
|
@@ -33138,6 +33218,7 @@ declare class StrategyCoreService implements TStrategy {
|
|
|
33138
33218
|
private readonly strategyValidationService;
|
|
33139
33219
|
private readonly exchangeValidationService;
|
|
33140
33220
|
private readonly frameValidationService;
|
|
33221
|
+
private readonly actionValidationService;
|
|
33141
33222
|
/**
|
|
33142
33223
|
* Validates strategy and associated risk configuration.
|
|
33143
33224
|
*
|
|
@@ -34782,6 +34863,18 @@ declare class WalkerCommandService implements TWalkerLogicPublicService {
|
|
|
34782
34863
|
private readonly strategySchemaService;
|
|
34783
34864
|
private readonly riskValidationService;
|
|
34784
34865
|
private readonly actionValidationService;
|
|
34866
|
+
/**
|
|
34867
|
+
* Validates walker and associated strategy configurations.
|
|
34868
|
+
* Memoized to avoid redundant validations for the same walker-exchange-frame combination.
|
|
34869
|
+
*
|
|
34870
|
+
* Strategy/risk/action validation is performed explicitly here in addition to the
|
|
34871
|
+
* cascade inside WalkerValidationService — this is critical-path code and the
|
|
34872
|
+
* redundant check is intentional defense-in-depth.
|
|
34873
|
+
*
|
|
34874
|
+
* @param context - Context with walkerName, exchangeName and frameName
|
|
34875
|
+
* @param methodName - Name of the calling method for error tracking
|
|
34876
|
+
*/
|
|
34877
|
+
private validate;
|
|
34785
34878
|
/**
|
|
34786
34879
|
* Runs walker comparison for a symbol with context propagation.
|
|
34787
34880
|
*
|
|
@@ -35177,6 +35270,14 @@ declare class LiveCommandService implements TLiveLogicPublicService {
|
|
|
35177
35270
|
private readonly strategySchemaService;
|
|
35178
35271
|
private readonly riskValidationService;
|
|
35179
35272
|
private readonly actionValidationService;
|
|
35273
|
+
/**
|
|
35274
|
+
* Validates strategy and associated risk configuration.
|
|
35275
|
+
* Memoized to avoid redundant validations for the same strategy-exchange combination.
|
|
35276
|
+
*
|
|
35277
|
+
* @param context - Context with strategyName, exchangeName
|
|
35278
|
+
* @param methodName - Name of the calling method for error tracking
|
|
35279
|
+
*/
|
|
35280
|
+
private validate;
|
|
35180
35281
|
/**
|
|
35181
35282
|
* Runs live trading for a symbol with context propagation.
|
|
35182
35283
|
*
|
|
@@ -35225,6 +35326,14 @@ declare class BacktestCommandService implements TBacktestLogicPublicService {
|
|
|
35225
35326
|
private readonly strategyValidationService;
|
|
35226
35327
|
private readonly exchangeValidationService;
|
|
35227
35328
|
private readonly frameValidationService;
|
|
35329
|
+
/**
|
|
35330
|
+
* Validates strategy and associated risk configuration.
|
|
35331
|
+
* Memoized to avoid redundant validations for the same strategy-exchange-frame combination.
|
|
35332
|
+
*
|
|
35333
|
+
* @param context - Context with strategyName, exchangeName and frameName
|
|
35334
|
+
* @param methodName - Name of the calling method for error tracking
|
|
35335
|
+
*/
|
|
35336
|
+
private validate;
|
|
35228
35337
|
/**
|
|
35229
35338
|
* Runs backtest for a symbol with context propagation.
|
|
35230
35339
|
*
|
|
@@ -35461,6 +35570,36 @@ declare class WalkerValidationService {
|
|
|
35461
35570
|
* Injected logger service instance
|
|
35462
35571
|
*/
|
|
35463
35572
|
private readonly loggerService;
|
|
35573
|
+
/**
|
|
35574
|
+
* @private
|
|
35575
|
+
* @readonly
|
|
35576
|
+
* Injected walker schema service instance
|
|
35577
|
+
*/
|
|
35578
|
+
private readonly walkerSchemaService;
|
|
35579
|
+
/**
|
|
35580
|
+
* @private
|
|
35581
|
+
* @readonly
|
|
35582
|
+
* Injected strategy validation service instance
|
|
35583
|
+
*/
|
|
35584
|
+
private readonly strategyValidationService;
|
|
35585
|
+
/**
|
|
35586
|
+
* @private
|
|
35587
|
+
* @readonly
|
|
35588
|
+
* Injected strategy schema service instance
|
|
35589
|
+
*/
|
|
35590
|
+
private readonly strategySchemaService;
|
|
35591
|
+
/**
|
|
35592
|
+
* @private
|
|
35593
|
+
* @readonly
|
|
35594
|
+
* Injected risk validation service instance
|
|
35595
|
+
*/
|
|
35596
|
+
private readonly riskValidationService;
|
|
35597
|
+
/**
|
|
35598
|
+
* @private
|
|
35599
|
+
* @readonly
|
|
35600
|
+
* Injected action validation service instance
|
|
35601
|
+
*/
|
|
35602
|
+
private readonly actionValidationService;
|
|
35464
35603
|
/**
|
|
35465
35604
|
* @private
|
|
35466
35605
|
* Map storing walker schemas by walker name
|
|
@@ -35473,9 +35612,12 @@ declare class WalkerValidationService {
|
|
|
35473
35612
|
*/
|
|
35474
35613
|
addWalker: (walkerName: WalkerName, walkerSchema: IWalkerSchema) => void;
|
|
35475
35614
|
/**
|
|
35476
|
-
* Validates the existence of a walker
|
|
35615
|
+
* Validates the existence of a walker and its associated strategy configurations.
|
|
35616
|
+
* Each strategy referenced by the walker is validated via StrategyValidationService,
|
|
35617
|
+
* which in turn validates the strategy's risk profiles and actions.
|
|
35477
35618
|
* @public
|
|
35478
35619
|
* @throws {Error} If walkerName is not found
|
|
35620
|
+
* @throws {Error} If any referenced strategy (or its risk/actions) is invalid
|
|
35479
35621
|
* Memoized function to cache validation results
|
|
35480
35622
|
*/
|
|
35481
35623
|
validate: (walkerName: WalkerName, source: string) => void;
|
|
@@ -35724,6 +35866,10 @@ declare class PartialGlobalService implements TPartial {
|
|
|
35724
35866
|
* Frame validation service for validating frame existence.
|
|
35725
35867
|
*/
|
|
35726
35868
|
private readonly frameValidationService;
|
|
35869
|
+
/**
|
|
35870
|
+
* Action validation service for validating action existence.
|
|
35871
|
+
*/
|
|
35872
|
+
private readonly actionValidationService;
|
|
35727
35873
|
/**
|
|
35728
35874
|
* Validates strategy and associated risk configuration.
|
|
35729
35875
|
* Memoized to avoid redundant validations for the same strategy-exchange-frame combination.
|
|
@@ -35841,6 +35987,10 @@ declare class BreakevenGlobalService implements TBreakeven {
|
|
|
35841
35987
|
* Frame validation service for validating frame existence.
|
|
35842
35988
|
*/
|
|
35843
35989
|
private readonly frameValidationService;
|
|
35990
|
+
/**
|
|
35991
|
+
* Action validation service for validating frame existence.
|
|
35992
|
+
*/
|
|
35993
|
+
private readonly actionValidationService;
|
|
35844
35994
|
/**
|
|
35845
35995
|
* Validates strategy and associated risk configuration.
|
|
35846
35996
|
* Memoized to avoid redundant validations for the same strategy-exchange-frame combination.
|
|
@@ -37171,4 +37321,13 @@ declare const getTotalClosed: (signal: Signal) => {
|
|
|
37171
37321
|
remainingCostBasis: number;
|
|
37172
37322
|
};
|
|
37173
37323
|
|
|
37174
|
-
export { ActionBase, type ActivateScheduledCommit, type ActivateScheduledCommitNotification, type ActivePingContract, type AfterEndContract, type AverageBuyCommit, type AverageBuyCommitNotification, Backtest, type BacktestStatisticsModel, type BeforeStartContract, Breakeven, type BreakevenAvailableNotification, type BreakevenCommit, type BreakevenCommitNotification, type BreakevenContract, type BreakevenData, type BreakevenEvent, type BreakevenStatisticsModel, Broker, type BrokerAverageBuyPayload, BrokerBase, type BrokerBreakevenPayload, type BrokerPartialLossPayload, type BrokerPartialProfitPayload, type BrokerSignalClosePayload, type BrokerSignalOpenPayload, type BrokerTrailingStopPayload, type BrokerTrailingTakePayload, Cache, type CancelScheduledCommit, type CancelScheduledCommitNotification, type CandleData, type CandleInterval, type ClosePendingCommit, type ClosePendingCommitNotification, type ColumnConfig, type ColumnModel, type CommitPayload, Constant, type CriticalErrorNotification, Cron, type CronCallback, type CronEntry, type CronHandle, type DoneContract, Dump, type EntityId, Exchange, ExecutionContextService, type FrameInterval, type GlobalConfig, Heat, type HeatmapStatisticsModel, HighestProfit, type HighestProfitContract, type HighestProfitEvent, type HighestProfitStatisticsModel, type IActionSchema, type IActivateScheduledCommitRow, type IAggregatedTradeData, type IBidData, type IBreakevenCommitRow, type IBroker, type ICandleData, type ICommitRow, type IDumpContext, type IDumpInstance, type IExchangeSchema, type IFrameSchema, type IHeatmapRow, type ILog, type ILogEntry, type ILogger, type IMarkdownDumpOptions, type IMemoryInstance, type INotificationUtils, type IOrderBookData, type IPartialLossCommitRow, type IPartialProfitCommitRow, type IPersistBase, type IPersistBreakevenInstance, type IPersistCandleInstance, type IPersistIntervalInstance, type IPersistLogInstance, type IPersistMeasureInstance, type IPersistMemoryInstance, type IPersistNotificationInstance, type IPersistPartialInstance, type IPersistRecentInstance, type IPersistRiskInstance, type IPersistScheduleInstance, type IPersistSessionInstance, type IPersistSignalInstance, type IPersistStateInstance, type IPersistStorageInstance, type IPositionSizeATRParams, type IPositionSizeFixedPercentageParams, type IPositionSizeKellyParams, type IPublicAction, type IPublicCandleData, type IPublicSignalRow, type IRecentUtils, type IReportDumpOptions, type IRiskActivePosition, type IRiskCheckArgs, type IRiskSchema, type IRiskSignalRow, type IRiskValidation, type IRiskValidationFn, type IRiskValidationPayload, type IRuntimeInfo, type IRuntimeRange, type IScheduledSignalCancelRow, type IScheduledSignalRow, type ISessionInstance, type ISignalDto, type ISignalIntervalDto, type ISignalRow, type ISizingCalculateParams, type ISizingCalculateParamsATR, type ISizingCalculateParamsFixedPercentage, type ISizingCalculateParamsKelly, type ISizingParams, type ISizingParamsATR, type ISizingParamsFixedPercentage, type ISizingParamsKelly, type ISizingSchema, type ISizingSchemaATR, type ISizingSchemaFixedPercentage, type ISizingSchemaKelly, type IStateInstance, type IStorageSignalRow, type IStorageUtils, type IStrategyPnL, type IStrategyResult, type IStrategySchema, type IStrategyTickResult, type IStrategyTickResultActive, type IStrategyTickResultCancelled, type IStrategyTickResultClosed, type IStrategyTickResultIdle, type IStrategyTickResultOpened, type IStrategyTickResultScheduled, type IStrategyTickResultWaiting, type ITrailingStopCommitRow, type ITrailingTakeCommitRow, type IWalkerResults, type IWalkerSchema, type IWalkerStrategyResult, type IdlePingContract, type InfoErrorNotification, Interval, type IntervalData, Live, type LiveStatisticsModel, Log, type LogData, Lookup, Markdown, MarkdownFileBase, MarkdownFolderBase, type MarkdownName, MarkdownWriter, MaxDrawdown, type MaxDrawdownContract, type MaxDrawdownEvent, type MaxDrawdownStatisticsModel, type MeasureData, Memory, MemoryBacktest, MemoryBacktestAdapter, type MemoryData, MemoryLive, MemoryLiveAdapter, type MessageModel, type MessageRole, type MessageToolCall, MethodContextService, type MetricStats, Notification, NotificationBacktest, type NotificationData, NotificationLive, type NotificationModel, Partial$1 as Partial, type PartialData, type PartialEvent, type PartialLossAvailableNotification, type PartialLossCommit, type PartialLossCommitNotification, type PartialLossContract, type PartialProfitAvailableNotification, type PartialProfitCommit, type PartialProfitCommitNotification, type PartialProfitContract, type PartialStatisticsModel, Performance, type PerformanceContract, type PerformanceMetricType, type PerformanceStatisticsModel, PersistBase, PersistBreakevenAdapter, PersistBreakevenInstance, PersistCandleAdapter, PersistCandleInstance, PersistIntervalAdapter, PersistIntervalInstance, PersistLogAdapter, PersistLogInstance, PersistMeasureAdapter, PersistMeasureInstance, PersistMemoryAdapter, PersistMemoryInstance, PersistNotificationAdapter, PersistNotificationInstance, PersistPartialAdapter, PersistPartialInstance, PersistRecentAdapter, PersistRecentInstance, PersistRiskAdapter, PersistRiskInstance, PersistScheduleAdapter, PersistScheduleInstance, PersistSessionAdapter, PersistSessionInstance, PersistSignalAdapter, PersistSignalInstance, PersistStateAdapter, PersistStateInstance, PersistStorageAdapter, PersistStorageInstance, Position, PositionSize, type ProgressBacktestContract, type ProgressWalkerContract, Recent, RecentBacktest, type RecentData, RecentLive, Reflect, Report, ReportBase, type ReportName, ReportWriter, Risk, type RiskContract, type RiskData, type RiskEvent, type RiskRejectionNotification, type RiskStatisticsModel, type RuntimeData, Schedule, type ScheduleData, type SchedulePingContract, type ScheduleStatisticsModel, type ScheduledEvent, Session, SessionBacktest, type SessionData, SessionLive, type SignalCancelledNotification, type SignalCloseContract, type SignalClosedNotification, type SignalData, type SignalInfoContract, type SignalInfoNotification, type SignalInterval, type SignalOpenContract, type SignalOpenedNotification, type SignalScheduledNotification, type SignalSyncCloseNotification, type SignalSyncContract, type SignalSyncOpenNotification, State, StateBacktest, StateBacktestAdapter, type StateData, StateLive, StateLiveAdapter, Storage, StorageBacktest, type StorageData, StorageLive, Strategy, type StrategyActionType, type StrategyCancelReason, type StrategyCloseReason, type StrategyCommitContract, type StrategyEvent, type StrategyStatisticsModel, Sync, type SyncEvent, type SyncStatisticsModel, System, type TBrokerCtor, type TDumpInstanceCtor, type TLogCtor, type TMarkdownBase, type TMemoryInstanceCtor, type TNotificationUtilsCtor, type TPersistBase, type TPersistBaseCtor, type TPersistBreakevenInstanceCtor, type TPersistCandleInstanceCtor, type TPersistIntervalInstanceCtor, type TPersistLogInstanceCtor, type TPersistMeasureInstanceCtor, type TPersistMemoryInstanceCtor, type TPersistNotificationInstanceCtor, type TPersistPartialInstanceCtor, type TPersistRecentInstanceCtor, type TPersistRiskInstanceCtor, type TPersistScheduleInstanceCtor, type TPersistSessionInstanceCtor, type TPersistSignalInstanceCtor, type TPersistStateInstanceCtor, type TPersistStorageInstanceCtor, type TRecentUtilsCtor, type TReportBase, type TSessionInstanceCtor, type TStateInstanceCtor, type TStorageUtilsCtor, type TickEvent, type TrailingStopCommit, type TrailingStopCommitNotification, type TrailingTakeCommit, type TrailingTakeCommitNotification, type ValidationErrorNotification, Walker, type WalkerCompleteContract, type WalkerContract, type WalkerMetric, type SignalData$1 as WalkerSignalData, type WalkerStatisticsModel, addActionSchema, addExchangeSchema, addFrameSchema, addRiskSchema, addSizingSchema, addStrategySchema, addWalkerSchema, alignToInterval, beginContext, beginTime, cacheCandles, checkCandles, commitActivateScheduled, commitAverageBuy, commitBreakeven, commitCancelScheduled, commitClosePending, commitPartialLoss, commitPartialLossCost, commitPartialProfit, commitPartialProfitCost, commitSignalNotify, commitTrailingStop, commitTrailingStopCost, commitTrailingTake, commitTrailingTakeCost, createSignalState, dumpAgentAnswer, dumpError, dumpJson, dumpRecord, dumpTable, dumpText, emitters, formatPrice, formatQuantity, get, getActionSchema, getAggregatedTrades, getAveragePrice, getBacktestTimeframe, getBreakeven, getCandles, getClosePrice, getColumns, getConfig, getContext, getDate, getDefaultColumns, getDefaultConfig, getEffectivePriceOpen, getExchangeSchema, getFrameSchema, getLatestSignal, getMaxDrawdownDistancePnlCost, getMaxDrawdownDistancePnlPercentage, getMinutesSinceLatestSignalCreated, getMode, getNextCandles, getOrderBook, getPendingSignal, getPositionActiveMinutes, getPositionCountdownMinutes, getPositionDrawdownMinutes, getPositionEffectivePrice, getPositionEntries, getPositionEntryOverlap, getPositionEstimateMinutes, getPositionHighestMaxDrawdownPnlCost, getPositionHighestMaxDrawdownPnlPercentage, getPositionHighestPnlCost, getPositionHighestPnlPercentage, getPositionHighestProfitBreakeven, getPositionHighestProfitDistancePnlCost, getPositionHighestProfitDistancePnlPercentage, getPositionHighestProfitMinutes, getPositionHighestProfitPrice, getPositionHighestProfitTimestamp, getPositionInvestedCost, getPositionInvestedCount, getPositionLevels, getPositionMaxDrawdownMinutes, getPositionMaxDrawdownPnlCost, getPositionMaxDrawdownPnlPercentage, getPositionMaxDrawdownPrice, getPositionMaxDrawdownTimestamp, getPositionPartialOverlap, getPositionPartials, getPositionPnlCost, getPositionPnlPercent, getPositionWaitingMinutes, getRawCandles, getRiskSchema, getScheduledSignal, getSessionData, getSignalState, getSizingSchema, getStrategySchema, getSymbol, getTimestamp, getTotalClosed, getTotalCostClosed, getTotalPercentClosed, getWalkerSchema, hasNoPendingSignal, hasNoScheduledSignal, hasTradeContext, intervalStepMs, investedCostToPercent, backtest as lib, listExchangeSchema, listFrameSchema, listMemory, listRiskSchema, listSizingSchema, listStrategySchema, listWalkerSchema, listenActivePing, listenActivePingOnce, listenAfterEnd, listenAfterEndOnce, listenBacktestProgress, listenBeforeStart, listenBeforeStartOnce, listenBreakevenAvailable, listenBreakevenAvailableOnce, listenDoneBacktest, listenDoneBacktestOnce, listenDoneLive, listenDoneLiveOnce, listenDoneWalker, listenDoneWalkerOnce, listenError, listenExit, listenHighestProfit, listenHighestProfitOnce, listenIdlePing, listenIdlePingOnce, listenMaxDrawdown, listenMaxDrawdownOnce, listenPartialLossAvailable, listenPartialLossAvailableOnce, listenPartialProfitAvailable, listenPartialProfitAvailableOnce, listenPerformance, listenRisk, listenRiskOnce, listenSchedulePing, listenSchedulePingOnce, listenSignal, listenSignalBacktest, listenSignalBacktestOnce, listenSignalLive, listenSignalLiveOnce, listenSignalNotify, listenSignalNotifyOnce, listenSignalOnce, listenStrategyCommit, listenStrategyCommitOnce, listenSync, listenSyncOnce, listenValidation, listenWalker, listenWalkerComplete, listenWalkerOnce, listenWalkerProgress, overrideActionSchema, overrideExchangeSchema, overrideFrameSchema, overrideRiskSchema, overrideSizingSchema, overrideStrategySchema, overrideWalkerSchema, parseArgs, percentDiff, percentToCloseCost, percentValue, readMemory, removeMemory, roundTicks, runInMockContext, searchMemory, set, setColumns, setConfig, setLogger, setSessionData, setSignalState, shutdown, slPercentShiftToPrice, slPriceToPercentShift, stopStrategy, toPlainString, toProfitLossDto, tpPercentShiftToPrice, tpPriceToPercentShift, validate, validateCommonSignal, validatePendingSignal, validateScheduledSignal, validateSignal, waitForCandle, waitForReady, warmCandles, writeMemory };
|
|
37324
|
+
/**
|
|
37325
|
+
* Derives the number of decimal places to show for a price based on the
|
|
37326
|
+
* magnitude of its integer part. Larger prices need fewer decimals; sub-dollar
|
|
37327
|
+
* prices keep full precision.
|
|
37328
|
+
* @param value - The price to derive the decimal scale for
|
|
37329
|
+
* @returns The number of digits after the decimal point
|
|
37330
|
+
*/
|
|
37331
|
+
declare const getPriceScale: (value: number) => number;
|
|
37332
|
+
|
|
37333
|
+
export { ActionBase, type ActivateScheduledCommit, type ActivateScheduledCommitNotification, type ActivePingContract, type AfterEndContract, type AverageBuyCommit, type AverageBuyCommitNotification, Backtest, type BacktestStatisticsModel, type BeforeStartContract, Breakeven, type BreakevenAvailableNotification, type BreakevenCommit, type BreakevenCommitNotification, type BreakevenContract, type BreakevenData, type BreakevenEvent, type BreakevenStatisticsModel, Broker, type BrokerAverageBuyPayload, BrokerBase, type BrokerBreakevenPayload, type BrokerPartialLossPayload, type BrokerPartialProfitPayload, type BrokerSignalClosePayload, type BrokerSignalOpenPayload, type BrokerTrailingStopPayload, type BrokerTrailingTakePayload, Cache, type CancelScheduledCommit, type CancelScheduledCommitNotification, type CandleData, type CandleInterval, type ClosePendingCommit, type ClosePendingCommitNotification, type ColumnConfig, type ColumnModel, type CommitPayload, Constant, type CriticalErrorNotification, Cron, type CronCallback, type CronEntry, type CronHandle, type DoneContract, Dump, type EntityId, Exchange, ExecutionContextService, type FrameInterval, type GlobalConfig, Heat, type HeatmapStatisticsModel, HighestProfit, type HighestProfitContract, type HighestProfitEvent, type HighestProfitStatisticsModel, type IActionSchema, type IActivateScheduledCommitRow, type IAggregatedTradeData, type IBidData, type IBreakevenCommitRow, type IBroker, type ICandleData, type ICommitRow, type IDumpContext, type IDumpInstance, type IExchangeSchema, type IFrameSchema, type IHeatmapRow, type ILog, type ILogEntry, type ILogger, type IMarkdownDumpOptions, type IMemoryInstance, type INotificationUtils, type IOrderBookData, type IPartialLossCommitRow, type IPartialProfitCommitRow, type IPersistBase, type IPersistBreakevenInstance, type IPersistCandleInstance, type IPersistIntervalInstance, type IPersistLogInstance, type IPersistMeasureInstance, type IPersistMemoryInstance, type IPersistNotificationInstance, type IPersistPartialInstance, type IPersistRecentInstance, type IPersistRiskInstance, type IPersistScheduleInstance, type IPersistSessionInstance, type IPersistSignalInstance, type IPersistStateInstance, type IPersistStorageInstance, type IPositionSizeATRParams, type IPositionSizeFixedPercentageParams, type IPositionSizeKellyParams, type IPublicAction, type IPublicCandleData, type IPublicSignalRow, type IRecentUtils, type IReportDumpOptions, type IRiskActivePosition, type IRiskCheckArgs, type IRiskSchema, type IRiskSignalRow, type IRiskValidation, type IRiskValidationFn, type IRiskValidationPayload, type IRuntimeInfo, type IRuntimeRange, type IScheduledSignalCancelRow, type IScheduledSignalRow, type ISessionInstance, type ISignalDto, type ISignalIntervalDto, type ISignalRow, type ISizingCalculateParams, type ISizingCalculateParamsATR, type ISizingCalculateParamsFixedPercentage, type ISizingCalculateParamsKelly, type ISizingParams, type ISizingParamsATR, type ISizingParamsFixedPercentage, type ISizingParamsKelly, type ISizingSchema, type ISizingSchemaATR, type ISizingSchemaFixedPercentage, type ISizingSchemaKelly, type IStateInstance, type IStorageSignalRow, type IStorageUtils, type IStrategyPnL, type IStrategyResult, type IStrategySchema, type IStrategyTickResult, type IStrategyTickResultActive, type IStrategyTickResultCancelled, type IStrategyTickResultClosed, type IStrategyTickResultIdle, type IStrategyTickResultOpened, type IStrategyTickResultScheduled, type IStrategyTickResultWaiting, type ITrailingStopCommitRow, type ITrailingTakeCommitRow, type IWalkerResults, type IWalkerSchema, type IWalkerStrategyResult, type IdlePingContract, type InfoErrorNotification, Interval, type IntervalData, Live, type LiveStatisticsModel, Log, type LogData, Lookup, Markdown, MarkdownFileBase, MarkdownFolderBase, type MarkdownName, MarkdownWriter, MaxDrawdown, type MaxDrawdownContract, type MaxDrawdownEvent, type MaxDrawdownStatisticsModel, type MeasureData, Memory, MemoryBacktest, MemoryBacktestAdapter, type MemoryData, MemoryLive, MemoryLiveAdapter, type MessageModel, type MessageRole, type MessageToolCall, MethodContextService, type MetricStats, Notification, NotificationBacktest, type NotificationData, NotificationLive, type NotificationModel, Partial$1 as Partial, type PartialData, type PartialEvent, type PartialLossAvailableNotification, type PartialLossCommit, type PartialLossCommitNotification, type PartialLossContract, type PartialProfitAvailableNotification, type PartialProfitCommit, type PartialProfitCommitNotification, type PartialProfitContract, type PartialStatisticsModel, Performance, type PerformanceContract, type PerformanceMetricType, type PerformanceStatisticsModel, PersistBase, PersistBreakevenAdapter, PersistBreakevenInstance, PersistCandleAdapter, PersistCandleInstance, PersistIntervalAdapter, PersistIntervalInstance, PersistLogAdapter, PersistLogInstance, PersistMeasureAdapter, PersistMeasureInstance, PersistMemoryAdapter, PersistMemoryInstance, PersistNotificationAdapter, PersistNotificationInstance, PersistPartialAdapter, PersistPartialInstance, PersistRecentAdapter, PersistRecentInstance, PersistRiskAdapter, PersistRiskInstance, PersistScheduleAdapter, PersistScheduleInstance, PersistSessionAdapter, PersistSessionInstance, PersistSignalAdapter, PersistSignalInstance, PersistStateAdapter, PersistStateInstance, PersistStorageAdapter, PersistStorageInstance, Position, PositionSize, type ProgressBacktestContract, type ProgressWalkerContract, Recent, RecentBacktest, type RecentData, RecentLive, Reflect, Report, ReportBase, type ReportName, ReportWriter, Risk, type RiskContract, type RiskData, type RiskEvent, type RiskRejectionNotification, type RiskStatisticsModel, type RuntimeData, Schedule, type ScheduleData, type SchedulePingContract, type ScheduleStatisticsModel, type ScheduledEvent, Session, SessionBacktest, type SessionData, SessionLive, type SignalCancelledNotification, type SignalCloseContract, type SignalClosedNotification, type SignalData, type SignalInfoContract, type SignalInfoNotification, type SignalInterval, type SignalOpenContract, type SignalOpenedNotification, type SignalScheduledNotification, type SignalSyncCloseNotification, type SignalSyncContract, type SignalSyncOpenNotification, State, StateBacktest, StateBacktestAdapter, type StateData, StateLive, StateLiveAdapter, Storage, StorageBacktest, type StorageData, StorageLive, Strategy, type StrategyActionType, type StrategyCancelReason, type StrategyCloseReason, type StrategyCommitContract, type StrategyEvent, type StrategyStatisticsModel, Sync, type SyncEvent, type SyncStatisticsModel, System, type TBrokerCtor, type TDumpInstanceCtor, type TLogCtor, type TMarkdownBase, type TMemoryInstanceCtor, type TNotificationUtilsCtor, type TPersistBase, type TPersistBaseCtor, type TPersistBreakevenInstanceCtor, type TPersistCandleInstanceCtor, type TPersistIntervalInstanceCtor, type TPersistLogInstanceCtor, type TPersistMeasureInstanceCtor, type TPersistMemoryInstanceCtor, type TPersistNotificationInstanceCtor, type TPersistPartialInstanceCtor, type TPersistRecentInstanceCtor, type TPersistRiskInstanceCtor, type TPersistScheduleInstanceCtor, type TPersistSessionInstanceCtor, type TPersistSignalInstanceCtor, type TPersistStateInstanceCtor, type TPersistStorageInstanceCtor, type TRecentUtilsCtor, type TReportBase, type TSessionInstanceCtor, type TStateInstanceCtor, type TStorageUtilsCtor, type TickEvent, type TrailingStopCommit, type TrailingStopCommitNotification, type TrailingTakeCommit, type TrailingTakeCommitNotification, type ValidationErrorNotification, Walker, type WalkerCompleteContract, type WalkerContract, type WalkerMetric, type SignalData$1 as WalkerSignalData, type WalkerStatisticsModel, addActionSchema, addExchangeSchema, addFrameSchema, addRiskSchema, addSizingSchema, addStrategySchema, addWalkerSchema, alignToInterval, beginContext, beginTime, cacheCandles, checkCandles, commitActivateScheduled, commitAverageBuy, commitBreakeven, commitCancelScheduled, commitClosePending, commitPartialLoss, commitPartialLossCost, commitPartialProfit, commitPartialProfitCost, commitSignalNotify, commitTrailingStop, commitTrailingStopCost, commitTrailingTake, commitTrailingTakeCost, createSignalState, dumpAgentAnswer, dumpError, dumpJson, dumpRecord, dumpTable, dumpText, emitters, formatPrice, formatQuantity, get, getActionSchema, getAggregatedTrades, getAveragePrice, getBacktestTimeframe, getBreakeven, getCandles, getClosePrice, getColumns, getConfig, getContext, getDate, getDefaultColumns, getDefaultConfig, getEffectivePriceOpen, getExchangeSchema, getFrameSchema, getLatestSignal, getMaxDrawdownDistancePnlCost, getMaxDrawdownDistancePnlPercentage, getMinutesSinceLatestSignalCreated, getMode, getNextCandles, getOrderBook, getPendingSignal, getPositionActiveMinutes, getPositionCountdownMinutes, getPositionDrawdownMinutes, getPositionEffectivePrice, getPositionEntries, getPositionEntryOverlap, getPositionEstimateMinutes, getPositionHighestMaxDrawdownPnlCost, getPositionHighestMaxDrawdownPnlPercentage, getPositionHighestPnlCost, getPositionHighestPnlPercentage, getPositionHighestProfitBreakeven, getPositionHighestProfitDistancePnlCost, getPositionHighestProfitDistancePnlPercentage, getPositionHighestProfitMinutes, getPositionHighestProfitPrice, getPositionHighestProfitTimestamp, getPositionInvestedCost, getPositionInvestedCount, getPositionLevels, getPositionMaxDrawdownMinutes, getPositionMaxDrawdownPnlCost, getPositionMaxDrawdownPnlPercentage, getPositionMaxDrawdownPrice, getPositionMaxDrawdownTimestamp, getPositionPartialOverlap, getPositionPartials, getPositionPnlCost, getPositionPnlPercent, getPositionWaitingMinutes, getPriceScale, getRawCandles, getRiskSchema, getRuntimeInfo, getScheduledSignal, getSessionData, getSignalState, getSizingSchema, getStrategySchema, getSymbol, getTimestamp, getTotalClosed, getTotalCostClosed, getTotalPercentClosed, getWalkerSchema, hasNoPendingSignal, hasNoScheduledSignal, hasTradeContext, intervalStepMs, investedCostToPercent, backtest as lib, listExchangeSchema, listFrameSchema, listMemory, listRiskSchema, listSizingSchema, listStrategySchema, listWalkerSchema, listenActivePing, listenActivePingOnce, listenAfterEnd, listenAfterEndOnce, listenBacktestProgress, listenBeforeStart, listenBeforeStartOnce, listenBreakevenAvailable, listenBreakevenAvailableOnce, listenDoneBacktest, listenDoneBacktestOnce, listenDoneLive, listenDoneLiveOnce, listenDoneWalker, listenDoneWalkerOnce, listenError, listenExit, listenHighestProfit, listenHighestProfitOnce, listenIdlePing, listenIdlePingOnce, listenMaxDrawdown, listenMaxDrawdownOnce, listenPartialLossAvailable, listenPartialLossAvailableOnce, listenPartialProfitAvailable, listenPartialProfitAvailableOnce, listenPerformance, listenRisk, listenRiskOnce, listenSchedulePing, listenSchedulePingOnce, listenSignal, listenSignalBacktest, listenSignalBacktestOnce, listenSignalLive, listenSignalLiveOnce, listenSignalNotify, listenSignalNotifyOnce, listenSignalOnce, listenStrategyCommit, listenStrategyCommitOnce, listenSync, listenSyncOnce, listenValidation, listenWalker, listenWalkerComplete, listenWalkerOnce, listenWalkerProgress, overrideActionSchema, overrideExchangeSchema, overrideFrameSchema, overrideRiskSchema, overrideSizingSchema, overrideStrategySchema, overrideWalkerSchema, parseArgs, percentDiff, percentToCloseCost, percentValue, readMemory, removeMemory, roundTicks, runInMockContext, searchMemory, set, setColumns, setConfig, setLogger, setSessionData, setSignalState, shutdown, slPercentShiftToPrice, slPriceToPercentShift, stopStrategy, toPlainString, toProfitLossDto, tpPercentShiftToPrice, tpPriceToPercentShift, validate, validateCommonSignal, validatePendingSignal, validateScheduledSignal, validateSignal, waitForCandle, waitForReady, warmCandles, writeMemory };
|