@tradejs/strategy-head-and-shoulders 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_config5 = require("@tradejs/core/config");
|
|
33
33
|
|
|
34
34
|
// src/HeadAndShoulders/config.ts
|
|
35
35
|
var import_constants = require("@tradejs/core/constants");
|
|
@@ -107,6 +107,9 @@ var config = {
|
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
+
// src/HeadAndShoulders/strategy.ts
|
|
111
|
+
var import_config3 = require("@tradejs/strategy-kit/config");
|
|
112
|
+
|
|
110
113
|
// src/HeadAndShoulders/core.ts
|
|
111
114
|
var import_math = require("@tradejs/core/math");
|
|
112
115
|
|
|
@@ -1050,6 +1053,10 @@ var headAndShouldersManifest = {
|
|
|
1050
1053
|
// src/HeadAndShoulders/strategy.ts
|
|
1051
1054
|
var HeadAndShouldersStrategyDefinition = {
|
|
1052
1055
|
defaults: config,
|
|
1056
|
+
parseConfig: (0, import_config3.createStrategyConfigParser)({
|
|
1057
|
+
strategyName: "HeadAndShoulders",
|
|
1058
|
+
defaults: config
|
|
1059
|
+
}),
|
|
1053
1060
|
createCore: createHeadAndShouldersCore,
|
|
1054
1061
|
manifest: headAndShouldersManifest
|
|
1055
1062
|
};
|
|
@@ -1062,7 +1069,7 @@ var defaultConfigs = {
|
|
|
1062
1069
|
HeadAndShoulders: config
|
|
1063
1070
|
};
|
|
1064
1071
|
var getBuiltInStrategyDefaultConfig = (strategyName) => defaultConfigs[strategyName];
|
|
1065
|
-
var index_default = (0,
|
|
1072
|
+
var index_default = (0, import_config5.defineStrategyPlugin)({ strategyEntries });
|
|
1066
1073
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1067
1074
|
0 && (module.exports = {
|
|
1068
1075
|
HeadAndShouldersStrategyDefinition,
|
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 HeadAndShouldersSideConfig {
|
|
4
5
|
enable: boolean;
|
|
@@ -87,17 +88,17 @@ type HeadAndShouldersConfig = StrategyConfig & Omit<typeof config, "BACKTEST_PRI
|
|
|
87
88
|
SHORT: HeadAndShouldersSideConfig;
|
|
88
89
|
};
|
|
89
90
|
|
|
90
|
-
declare const HeadAndShouldersStrategyDefinition:
|
|
91
|
+
declare const HeadAndShouldersStrategyDefinition: ValidatedStrategyRegistryEntry<HeadAndShouldersConfig>;
|
|
91
92
|
|
|
92
93
|
declare const headAndShouldersManifest: StrategyManifest;
|
|
93
94
|
|
|
94
95
|
declare const headAndShouldersAiAdapter: StrategyAiAdapter;
|
|
95
96
|
|
|
96
|
-
declare const strategyEntries:
|
|
97
|
+
declare const strategyEntries: ValidatedStrategyRegistryEntry<any>[];
|
|
97
98
|
declare const getBuiltInStrategyDefaultConfig: (strategyName: string) => StrategyConfig | undefined;
|
|
98
99
|
|
|
99
100
|
declare const _default: {
|
|
100
|
-
strategyEntries:
|
|
101
|
+
strategyEntries: ValidatedStrategyRegistryEntry<any>[];
|
|
101
102
|
};
|
|
102
103
|
|
|
103
104
|
export { HeadAndShouldersStrategyDefinition, _default as default, getBuiltInStrategyDefaultConfig, headAndShouldersAiAdapter, config as headAndShouldersDefaultConfig, headAndShouldersManifest, 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 HeadAndShouldersSideConfig {
|
|
4
5
|
enable: boolean;
|
|
@@ -87,17 +88,17 @@ type HeadAndShouldersConfig = StrategyConfig & Omit<typeof config, "BACKTEST_PRI
|
|
|
87
88
|
SHORT: HeadAndShouldersSideConfig;
|
|
88
89
|
};
|
|
89
90
|
|
|
90
|
-
declare const HeadAndShouldersStrategyDefinition:
|
|
91
|
+
declare const HeadAndShouldersStrategyDefinition: ValidatedStrategyRegistryEntry<HeadAndShouldersConfig>;
|
|
91
92
|
|
|
92
93
|
declare const headAndShouldersManifest: StrategyManifest;
|
|
93
94
|
|
|
94
95
|
declare const headAndShouldersAiAdapter: StrategyAiAdapter;
|
|
95
96
|
|
|
96
|
-
declare const strategyEntries:
|
|
97
|
+
declare const strategyEntries: ValidatedStrategyRegistryEntry<any>[];
|
|
97
98
|
declare const getBuiltInStrategyDefaultConfig: (strategyName: string) => StrategyConfig | undefined;
|
|
98
99
|
|
|
99
100
|
declare const _default: {
|
|
100
|
-
strategyEntries:
|
|
101
|
+
strategyEntries: ValidatedStrategyRegistryEntry<any>[];
|
|
101
102
|
};
|
|
102
103
|
|
|
103
104
|
export { HeadAndShouldersStrategyDefinition, _default as default, getBuiltInStrategyDefaultConfig, headAndShouldersAiAdapter, config as headAndShouldersDefaultConfig, headAndShouldersManifest, strategyEntries };
|
package/dist/index.js
CHANGED
|
@@ -77,6 +77,9 @@ var config = {
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
+
// src/HeadAndShoulders/strategy.ts
|
|
81
|
+
import { createStrategyConfigParser } from "@tradejs/strategy-kit/config";
|
|
82
|
+
|
|
80
83
|
// src/HeadAndShoulders/core.ts
|
|
81
84
|
import { round } from "@tradejs/core/math";
|
|
82
85
|
|
|
@@ -1026,6 +1029,10 @@ var headAndShouldersManifest = {
|
|
|
1026
1029
|
// src/HeadAndShoulders/strategy.ts
|
|
1027
1030
|
var HeadAndShouldersStrategyDefinition = {
|
|
1028
1031
|
defaults: config,
|
|
1032
|
+
parseConfig: createStrategyConfigParser({
|
|
1033
|
+
strategyName: "HeadAndShoulders",
|
|
1034
|
+
defaults: config
|
|
1035
|
+
}),
|
|
1029
1036
|
createCore: createHeadAndShouldersCore,
|
|
1030
1037
|
manifest: headAndShouldersManifest
|
|
1031
1038
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tradejs/strategy-head-and-shoulders",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2-beta.4",
|
|
4
4
|
"description": "Head-and-shoulders and inverse-pattern strategy with neckline confirmation, retests, and pattern-height risk 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": {
|