@tradejs/strategy-double-tap 3.0.1-beta.2 → 3.0.2-beta.4
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/index.cjs +9 -2
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +7 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -29,7 +29,7 @@ __export(index_exports, {
|
|
|
29
29
|
strategyEntries: () => strategyEntries
|
|
30
30
|
});
|
|
31
31
|
module.exports = __toCommonJS(index_exports);
|
|
32
|
-
var
|
|
32
|
+
var import_config4 = require("@tradejs/core/config");
|
|
33
33
|
|
|
34
34
|
// src/DoubleTap/config.ts
|
|
35
35
|
var import_constants = require("@tradejs/core/constants");
|
|
@@ -94,6 +94,9 @@ var config = {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
+
// src/DoubleTap/strategy.ts
|
|
98
|
+
var import_config2 = require("@tradejs/strategy-kit/config");
|
|
99
|
+
|
|
97
100
|
// src/DoubleTap/core.ts
|
|
98
101
|
var import_math = require("@tradejs/core/math");
|
|
99
102
|
|
|
@@ -1653,6 +1656,10 @@ var doubleTapManifest = {
|
|
|
1653
1656
|
// src/DoubleTap/strategy.ts
|
|
1654
1657
|
var DoubleTapStrategyDefinition = {
|
|
1655
1658
|
defaults: config,
|
|
1659
|
+
parseConfig: (0, import_config2.createStrategyConfigParser)({
|
|
1660
|
+
strategyName: "DoubleTap",
|
|
1661
|
+
defaults: config
|
|
1662
|
+
}),
|
|
1656
1663
|
createCore: createDoubleTapCore,
|
|
1657
1664
|
manifest: doubleTapManifest
|
|
1658
1665
|
};
|
|
@@ -1665,7 +1672,7 @@ var defaultConfigs = {
|
|
|
1665
1672
|
DoubleTap: config
|
|
1666
1673
|
};
|
|
1667
1674
|
var getBuiltInStrategyDefaultConfig = (strategyName) => defaultConfigs[strategyName];
|
|
1668
|
-
var index_default = (0,
|
|
1675
|
+
var index_default = (0, import_config4.defineStrategyPlugin)({ strategyEntries });
|
|
1669
1676
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1670
1677
|
0 && (module.exports = {
|
|
1671
1678
|
DoubleTapStrategyDefinition,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ValidatedStrategyRegistryEntry } from '@tradejs/strategy-kit/config';
|
|
2
|
+
import { StrategyConfig, Interval, BacktestPriceMode, Direction, StrategyManifest, StrategyAiAdapter } from '@tradejs/types';
|
|
2
3
|
|
|
3
4
|
interface DoubleTapSideConfig {
|
|
4
5
|
enable: boolean;
|
|
@@ -74,17 +75,17 @@ type DoubleTapConfig = StrategyConfig & Omit<typeof config, "BACKTEST_PRICE_MODE
|
|
|
74
75
|
SHORT: DoubleTapSideConfig;
|
|
75
76
|
};
|
|
76
77
|
|
|
77
|
-
declare const DoubleTapStrategyDefinition:
|
|
78
|
+
declare const DoubleTapStrategyDefinition: ValidatedStrategyRegistryEntry<DoubleTapConfig>;
|
|
78
79
|
|
|
79
80
|
declare const doubleTapManifest: StrategyManifest;
|
|
80
81
|
|
|
81
82
|
declare const doubleTapAiAdapter: StrategyAiAdapter;
|
|
82
83
|
|
|
83
|
-
declare const strategyEntries:
|
|
84
|
+
declare const strategyEntries: ValidatedStrategyRegistryEntry<any>[];
|
|
84
85
|
declare const getBuiltInStrategyDefaultConfig: (strategyName: string) => StrategyConfig | undefined;
|
|
85
86
|
|
|
86
87
|
declare const _default: {
|
|
87
|
-
strategyEntries:
|
|
88
|
+
strategyEntries: ValidatedStrategyRegistryEntry<any>[];
|
|
88
89
|
};
|
|
89
90
|
|
|
90
91
|
export { DoubleTapStrategyDefinition, _default as default, doubleTapAiAdapter, config as doubleTapDefaultConfig, doubleTapManifest, getBuiltInStrategyDefaultConfig, strategyEntries };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ValidatedStrategyRegistryEntry } from '@tradejs/strategy-kit/config';
|
|
2
|
+
import { StrategyConfig, Interval, BacktestPriceMode, Direction, StrategyManifest, StrategyAiAdapter } from '@tradejs/types';
|
|
2
3
|
|
|
3
4
|
interface DoubleTapSideConfig {
|
|
4
5
|
enable: boolean;
|
|
@@ -74,17 +75,17 @@ type DoubleTapConfig = StrategyConfig & Omit<typeof config, "BACKTEST_PRICE_MODE
|
|
|
74
75
|
SHORT: DoubleTapSideConfig;
|
|
75
76
|
};
|
|
76
77
|
|
|
77
|
-
declare const DoubleTapStrategyDefinition:
|
|
78
|
+
declare const DoubleTapStrategyDefinition: ValidatedStrategyRegistryEntry<DoubleTapConfig>;
|
|
78
79
|
|
|
79
80
|
declare const doubleTapManifest: StrategyManifest;
|
|
80
81
|
|
|
81
82
|
declare const doubleTapAiAdapter: StrategyAiAdapter;
|
|
82
83
|
|
|
83
|
-
declare const strategyEntries:
|
|
84
|
+
declare const strategyEntries: ValidatedStrategyRegistryEntry<any>[];
|
|
84
85
|
declare const getBuiltInStrategyDefaultConfig: (strategyName: string) => StrategyConfig | undefined;
|
|
85
86
|
|
|
86
87
|
declare const _default: {
|
|
87
|
-
strategyEntries:
|
|
88
|
+
strategyEntries: ValidatedStrategyRegistryEntry<any>[];
|
|
88
89
|
};
|
|
89
90
|
|
|
90
91
|
export { DoubleTapStrategyDefinition, _default as default, doubleTapAiAdapter, config as doubleTapDefaultConfig, doubleTapManifest, getBuiltInStrategyDefaultConfig, strategyEntries };
|
package/dist/index.js
CHANGED
|
@@ -64,6 +64,9 @@ var config = {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
+
// src/DoubleTap/strategy.ts
|
|
68
|
+
import { createStrategyConfigParser } from "@tradejs/strategy-kit/config";
|
|
69
|
+
|
|
67
70
|
// src/DoubleTap/core.ts
|
|
68
71
|
import { round } from "@tradejs/core/math";
|
|
69
72
|
|
|
@@ -1629,6 +1632,10 @@ var doubleTapManifest = {
|
|
|
1629
1632
|
// src/DoubleTap/strategy.ts
|
|
1630
1633
|
var DoubleTapStrategyDefinition = {
|
|
1631
1634
|
defaults: config,
|
|
1635
|
+
parseConfig: createStrategyConfigParser({
|
|
1636
|
+
strategyName: "DoubleTap",
|
|
1637
|
+
defaults: config
|
|
1638
|
+
}),
|
|
1632
1639
|
createCore: createDoubleTapCore,
|
|
1633
1640
|
manifest: doubleTapManifest
|
|
1634
1641
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tradejs/strategy-double-tap",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2-beta.4",
|
|
4
4
|
"description": "Double-top and double-bottom strategy with pivot and neckline validation, confirmation, retests, and pattern-height targets for TradeJS.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "yarn@4.13.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"sideEffects": false,
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@tradejs/core": "^3.0.1",
|
|
45
|
-
"@tradejs/strategy-kit": "^3.0.
|
|
45
|
+
"@tradejs/strategy-kit": "^3.0.1",
|
|
46
46
|
"@tradejs/types": "^3.0.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|