aiden-shared-calculations-unified 1.0.19 → 1.0.21
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/calculations/meta/capital_deployment_strategy.js +1 -1
- package/calculations/meta/cash-flow-deployment.js +1 -1
- package/calculations/meta/cash-flow-liquidation.js +1 -1
- package/calculations/meta/profit_cohort_divergence.js +1 -1
- package/calculations/meta/smart-dumb-divergence-index.js +1 -1
- package/calculations/meta/social_flow_correlation.js +7 -4
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ class CapitalDeploymentStrategy {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
this.lookbackDays = 7;
|
|
12
12
|
this.correlationWindow = 3; // How many days after a signal to link behavior
|
|
13
|
-
this.depositSignalThreshold = -
|
|
13
|
+
this.depositSignalThreshold = -0.005; // Formerly -1.0
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
_getDateStr(baseDate, daysAgo) {
|
|
@@ -11,7 +11,7 @@ class CashFlowLiquidation {
|
|
|
11
11
|
this.lookbackDays = 7;
|
|
12
12
|
this.correlationWindow = 3;
|
|
13
13
|
// A positive value signals a net crowd withdrawal
|
|
14
|
-
this.withdrawalSignalThreshold = 1.0
|
|
14
|
+
this.withdrawalSignalThreshold = 0.005; // Formerly 1.0
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
_getDateStr(baseDate, daysAgo) {
|
|
@@ -5,12 +5,15 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
class SocialFlowCorrelation {
|
|
8
|
+
// REPLACE this constructor in social_flow_correlation.js
|
|
8
9
|
constructor() {
|
|
9
10
|
// Define sensitivity thresholds
|
|
10
|
-
this.bullishSentimentThreshold = 70.0; // % ratio
|
|
11
|
-
this.bearishSentimentThreshold = 30.0; // % ratio
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
this.bullishSentimentThreshold = 70.0; // % ratio (This is CORRECT)
|
|
12
|
+
this.bearishSentimentThreshold = 30.0; // % ratio (This is CORRECT)
|
|
13
|
+
|
|
14
|
+
// FIX: The flow thresholds must be small decimal percentages.
|
|
15
|
+
this.positiveFlowThreshold = 0.005; // net_crowd_flow_pct (formerly 0.5)
|
|
16
|
+
this.negativeFlowThreshold = -0.005; // net_crowd_flow_pct (formerly -0.5)
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
/**
|