@tradejs/strategy-head-and-shoulders 3.0.3-beta.7 → 3.0.4-beta.9
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 +10 -2
- package/dist/index.js +10 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1029,7 +1029,7 @@ Interpretation rules for HeadAndShoulders:
|
|
|
1029
1029
|
var headAndShouldersAiAdapter = (0, import_ai_gate.withStrategyLocalAiGate)(
|
|
1030
1030
|
headAndShouldersBaseAiAdapter,
|
|
1031
1031
|
{
|
|
1032
|
-
id: "
|
|
1032
|
+
id: "head_and_shoulders_short_wick_breadth_long_poc_slope_2026_08_26",
|
|
1033
1033
|
approves: ({ signal, payload }) => {
|
|
1034
1034
|
const upperWickPct = (0, import_ai_gate.getAiPayloadNumber)(
|
|
1035
1035
|
payload,
|
|
@@ -1039,7 +1039,15 @@ var headAndShouldersAiAdapter = (0, import_ai_gate.withStrategyLocalAiGate)(
|
|
|
1039
1039
|
payload,
|
|
1040
1040
|
"additionalIndicators.baseContext.relative.btcAltRegime.altBasketReturn24h"
|
|
1041
1041
|
);
|
|
1042
|
-
|
|
1042
|
+
const distanceToPointOfControlAtr = (0, import_ai_gate.getAiPayloadNumber)(
|
|
1043
|
+
payload,
|
|
1044
|
+
"additionalIndicators.baseContext.participation.priceVolumeProfile.distanceToPointOfControlAtr"
|
|
1045
|
+
);
|
|
1046
|
+
const centerlineSlope = (0, import_ai_gate.getAiPayloadNumber)(
|
|
1047
|
+
payload,
|
|
1048
|
+
"additionalIndicators.baseContext.regime.trend.adaptiveChannel.centerlineSlope"
|
|
1049
|
+
);
|
|
1050
|
+
return signal.direction === "SHORT" && upperWickPct != null && upperWickPct <= 0.3 && altBasketReturn24h != null && altBasketReturn24h >= -5e-3 || signal.direction === "LONG" && distanceToPointOfControlAtr != null && distanceToPointOfControlAtr >= 2 && centerlineSlope != null && centerlineSlope >= 0;
|
|
1043
1051
|
}
|
|
1044
1052
|
}
|
|
1045
1053
|
);
|
package/dist/index.js
CHANGED
|
@@ -1005,7 +1005,7 @@ Interpretation rules for HeadAndShoulders:
|
|
|
1005
1005
|
var headAndShouldersAiAdapter = withStrategyLocalAiGate(
|
|
1006
1006
|
headAndShouldersBaseAiAdapter,
|
|
1007
1007
|
{
|
|
1008
|
-
id: "
|
|
1008
|
+
id: "head_and_shoulders_short_wick_breadth_long_poc_slope_2026_08_26",
|
|
1009
1009
|
approves: ({ signal, payload }) => {
|
|
1010
1010
|
const upperWickPct = getAiPayloadNumber(
|
|
1011
1011
|
payload,
|
|
@@ -1015,7 +1015,15 @@ var headAndShouldersAiAdapter = withStrategyLocalAiGate(
|
|
|
1015
1015
|
payload,
|
|
1016
1016
|
"additionalIndicators.baseContext.relative.btcAltRegime.altBasketReturn24h"
|
|
1017
1017
|
);
|
|
1018
|
-
|
|
1018
|
+
const distanceToPointOfControlAtr = getAiPayloadNumber(
|
|
1019
|
+
payload,
|
|
1020
|
+
"additionalIndicators.baseContext.participation.priceVolumeProfile.distanceToPointOfControlAtr"
|
|
1021
|
+
);
|
|
1022
|
+
const centerlineSlope = getAiPayloadNumber(
|
|
1023
|
+
payload,
|
|
1024
|
+
"additionalIndicators.baseContext.regime.trend.adaptiveChannel.centerlineSlope"
|
|
1025
|
+
);
|
|
1026
|
+
return signal.direction === "SHORT" && upperWickPct != null && upperWickPct <= 0.3 && altBasketReturn24h != null && altBasketReturn24h >= -5e-3 || signal.direction === "LONG" && distanceToPointOfControlAtr != null && distanceToPointOfControlAtr >= 2 && centerlineSlope != null && centerlineSlope >= 0;
|
|
1019
1027
|
}
|
|
1020
1028
|
}
|
|
1021
1029
|
);
|
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.4-beta.9",
|
|
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",
|