@tradejs/node 2.0.18 → 2.0.19
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/dist/ai.js +4763 -168
- package/dist/ai.mjs +2 -3
- package/dist/backtest.js +4018 -1372
- package/dist/backtest.mjs +537 -872
- package/dist/chunk-4AVFJMQL.mjs +6054 -0
- package/dist/chunk-Y6FXYEAI.mjs +10 -0
- package/dist/cli.js +5537 -6403
- package/dist/cli.mjs +5 -11
- package/dist/connectors.mjs +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/pine.mjs +122 -13
- package/dist/registry.js +5732 -48
- package/dist/registry.mjs +2 -2
- package/dist/strategies.d.mts +2 -2
- package/dist/strategies.d.ts +2 -2
- package/dist/strategies.js +2296 -7843
- package/dist/strategies.mjs +46 -2547
- package/package.json +6 -4
- package/dist/chunk-3BP3ETAD.mjs +0 -2134
- package/dist/chunk-GPR56UYQ.mjs +0 -5518
- package/dist/chunk-IQKMII6L.mjs +0 -137
- package/dist/chunk-QVSMINLG.mjs +0 -246
- package/dist/chunk-UV2HVMKZ.mjs +0 -41
- package/dist/chunk-WK5EUCX5.mjs +0 -1191
package/dist/registry.mjs
CHANGED
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
registerStrategyEntries,
|
|
12
12
|
resetStrategyRegistryCache,
|
|
13
13
|
strategies
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4AVFJMQL.mjs";
|
|
15
15
|
import "./chunk-WS5DYEVZ.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-Y6FXYEAI.mjs";
|
|
17
17
|
export {
|
|
18
18
|
ensureIndicatorPluginsLoaded,
|
|
19
19
|
ensureStrategyPluginsLoaded,
|
package/dist/strategies.d.mts
CHANGED
|
@@ -9,11 +9,11 @@ interface CreateStrategyRuntimeParams<TConfig extends StrategyConfig> {
|
|
|
9
9
|
defaults: TConfig;
|
|
10
10
|
createCore: CreateStrategyCore<TConfig, any, any>;
|
|
11
11
|
manifest?: StrategyManifest;
|
|
12
|
-
strategyDirectory?: string;
|
|
13
12
|
detectorKey?: (config: TConfig) => string | undefined;
|
|
14
13
|
detectorNoSignalSkipReason?: string;
|
|
14
|
+
resolveRegisteredManifest?: (name: string) => StrategyManifest | undefined;
|
|
15
15
|
}
|
|
16
|
-
declare const createStrategyRuntime: <TConfig extends StrategyConfig>({ strategyName, defaults, createCore, manifest: staticManifest,
|
|
16
|
+
declare const createStrategyRuntime: <TConfig extends StrategyConfig>({ strategyName, defaults, createCore, manifest: staticManifest, detectorKey, detectorNoSignalSkipReason, resolveRegisteredManifest, }: CreateStrategyRuntimeParams<TConfig>) => StrategyCreator;
|
|
17
17
|
|
|
18
18
|
interface ResolveStrategyConfigParams<TConfig extends StrategyConfig> {
|
|
19
19
|
strategyName: string;
|
package/dist/strategies.d.ts
CHANGED
|
@@ -9,11 +9,11 @@ interface CreateStrategyRuntimeParams<TConfig extends StrategyConfig> {
|
|
|
9
9
|
defaults: TConfig;
|
|
10
10
|
createCore: CreateStrategyCore<TConfig, any, any>;
|
|
11
11
|
manifest?: StrategyManifest;
|
|
12
|
-
strategyDirectory?: string;
|
|
13
12
|
detectorKey?: (config: TConfig) => string | undefined;
|
|
14
13
|
detectorNoSignalSkipReason?: string;
|
|
14
|
+
resolveRegisteredManifest?: (name: string) => StrategyManifest | undefined;
|
|
15
15
|
}
|
|
16
|
-
declare const createStrategyRuntime: <TConfig extends StrategyConfig>({ strategyName, defaults, createCore, manifest: staticManifest,
|
|
16
|
+
declare const createStrategyRuntime: <TConfig extends StrategyConfig>({ strategyName, defaults, createCore, manifest: staticManifest, detectorKey, detectorNoSignalSkipReason, resolveRegisteredManifest, }: CreateStrategyRuntimeParams<TConfig>) => StrategyCreator;
|
|
17
17
|
|
|
18
18
|
interface ResolveStrategyConfigParams<TConfig extends StrategyConfig> {
|
|
19
19
|
strategyName: string;
|