aiden-shared-calculations-unified 1.0.20 → 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.
@@ -6,7 +6,7 @@
6
6
 
7
7
  class ProfitCohortDivergence {
8
8
  constructor() {
9
- this.flowThreshold = 0.5; // Min abs flow % to be considered a signal
9
+ this.flowThreshold = 0.005; // Min abs flow % to be considered a signal (formerly 0.5)
10
10
  }
11
11
 
12
12
  /**
@@ -10,7 +10,7 @@
10
10
  class SmartDumbDivergenceIndex {
11
11
  constructor() {
12
12
  // Minimum net flow (as a percentage) to be considered a signal
13
- this.FLOW_THRESHOLD = 0.5;
13
+ this.FLOW_THRESHOLD = 0.005; // Formerly 0.5
14
14
  }
15
15
 
16
16
  /**
@@ -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
- this.positiveFlowThreshold = 0.5; // net_crowd_flow_pct
13
- this.negativeFlowThreshold = -0.5; // net_crowd_flow_pct
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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiden-shared-calculations-unified",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Shared calculation modules for the BullTrackers Computation System.",
5
5
  "main": "index.js",
6
6
  "files": [