@pgnio/helios-mcp 0.2.7 → 0.2.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/{chunk-V453JYRN.mjs → chunk-7TMDGB6C.mjs} +64 -31
- package/dist/{chunk-WLCFIWFP.mjs → chunk-LMZEWQVW.mjs} +68 -32
- package/dist/cli.js +41 -15
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +15 -9
- package/dist/index.d.ts +15 -9
- package/dist/index.js +41 -15
- package/dist/index.mjs +1 -1
- package/docs/ai-agent-indicators/00_columns.txt +76 -0
- package/docs/ai-agent-indicators/00_index.txt +4 -19
- package/package.json +1 -1
- package/dist/chunk-52XY4KRG.mjs +0 -3038
- package/dist/chunk-7EDI4KLD.mjs +0 -3042
- package/dist/chunk-EIAUO3XE.mjs +0 -2955
- package/dist/chunk-NCF7ASJB.mjs +0 -2986
- package/dist/chunk-NWGWXYTS.mjs +0 -2964
- package/dist/chunk-UYCUR7QV.mjs +0 -2994
- package/dist/chunk-XE6HRID3.mjs +0 -2992
- package/docs/ai-agent-indicators/squeeze_duration.txt +0 -115
- package/docs/ai-agent-indicators/squeeze_energy.txt +0 -128
- package/docs/ai-agent-indicators/tf_alignment.txt +0 -165
- package/docs/ai-agent-indicators/volatility_squeeze.txt +0 -169
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
================================================================================
|
|
2
|
-
INDICATOR: SQUEEZE_DURATION — VOLATILITY SQUEEZE DURATION
|
|
3
|
-
================================================================================
|
|
4
|
-
id: squeeze_duration
|
|
5
|
-
data_field: indicators.squeeze_duration
|
|
6
|
-
type: NUMERIC (integer count)
|
|
7
|
-
range: [0, ∞)
|
|
8
|
-
precision: Integer (whole number of ticks)
|
|
9
|
-
update_rate: per_tick
|
|
10
|
-
latency_profile: COINCIDENT
|
|
11
|
-
|
|
12
|
-
--------------------------------------------------------------------------------
|
|
13
|
-
CONSTRUCT
|
|
14
|
-
--------------------------------------------------------------------------------
|
|
15
|
-
squeeze_duration counts the number of consecutive ticks where the volatility
|
|
16
|
-
squeeze value has been BELOW the squeeze threshold of 0.8.
|
|
17
|
-
|
|
18
|
-
IF indicators.volatility_squeeze < 0.8
|
|
19
|
-
squeeze_duration += 1
|
|
20
|
-
|
|
21
|
-
IF indicators.volatility_squeeze >= 0.8
|
|
22
|
-
squeeze_duration = 0 (reset immediately when squeeze breaks)
|
|
23
|
-
|
|
24
|
-
A duration of 0 means either the squeeze is not active (value >= 0.8) or
|
|
25
|
-
the squeeze just started this tick (first tick below 0.8).
|
|
26
|
-
|
|
27
|
-
This indicator quantifies the TIME dimension of the squeeze. When combined
|
|
28
|
-
with volatility_squeeze (depth) and squeeze_energy (integrated depth × time),
|
|
29
|
-
it provides the full picture of a squeeze development.
|
|
30
|
-
|
|
31
|
-
--------------------------------------------------------------------------------
|
|
32
|
-
RANGE INTERPRETATION
|
|
33
|
-
--------------------------------------------------------------------------------
|
|
34
|
-
value = 0
|
|
35
|
-
No active squeeze. volatility_squeeze >= 0.8. Normal or expanding
|
|
36
|
-
volatility conditions. OR: squeeze just broke this tick (value resets
|
|
37
|
-
immediately). In either case: not in a sustained compression state.
|
|
38
|
-
|
|
39
|
-
value 1-5 (very short)
|
|
40
|
-
Just entered squeeze territory. Compression has barely begun.
|
|
41
|
-
Insufficient duration for meaningful energy buildup. Do not treat as
|
|
42
|
-
an active squeeze setup until duration is longer.
|
|
43
|
-
|
|
44
|
-
value 6-20 (short squeeze)
|
|
45
|
-
Squeeze has persisted for a meaningful period. Some directional energy
|
|
46
|
-
is building, especially if volatility_squeeze is also deep (< 0.5).
|
|
47
|
-
Combination of squeeze_duration and squeeze_energy now worth monitoring.
|
|
48
|
-
|
|
49
|
-
value 21-60 (moderate squeeze)
|
|
50
|
-
Sustained compression. An extended period of volatility below the GARCH
|
|
51
|
-
baseline. This duration at low squeeze_value produces significant squeeze_energy.
|
|
52
|
-
Market is in a genuine consolidation/coiling phase.
|
|
53
|
-
|
|
54
|
-
value > 60 (extended squeeze)
|
|
55
|
-
Prolonged compression. Very significant stored directional energy by any
|
|
56
|
-
measure. Extended squeezes historically precede the most significant
|
|
57
|
-
breakout moves. The asset has been unable to sustain any realized trend
|
|
58
|
-
for a long period.
|
|
59
|
-
|
|
60
|
-
--------------------------------------------------------------------------------
|
|
61
|
-
INDICATOR RELATIONSHIPS
|
|
62
|
-
--------------------------------------------------------------------------------
|
|
63
|
-
indicators.volatility_squeeze | REQUIRED_COMPANION
|
|
64
|
-
squeeze_duration counts ticks at squeeze; but duration without
|
|
65
|
-
knowing the depth (volatility_squeeze value) is incomplete.
|
|
66
|
-
|
|
67
|
-
High duration + deep squeeze = maximum energy accumulation.
|
|
68
|
-
High duration + shallow squeeze (value = 0.75) = moderate accumulation.
|
|
69
|
-
Low duration + deep squeeze = sudden sharp compression, not settled yet.
|
|
70
|
-
|
|
71
|
-
The most significant setups are:
|
|
72
|
-
volatility_squeeze < 0.4 AND squeeze_duration > 30
|
|
73
|
-
|
|
74
|
-
indicators.squeeze_energy | COMPANION
|
|
75
|
-
squeeze_energy = squeeze_duration × (0.8 - volatility_squeeze)
|
|
76
|
-
It is the integrated compression depth over time.
|
|
77
|
-
squeeze_duration is the COUNT; squeeze_energy is the MAGNITUDE.
|
|
78
|
-
Use duration to track progression; use energy for trade assessment.
|
|
79
|
-
|
|
80
|
-
indicators.regime | CONTEXT
|
|
81
|
-
IF regime = CONSOL AND squeeze_duration > 20
|
|
82
|
-
→ Both regime and volatility confirm sustained compression.
|
|
83
|
-
IF regime shifts from CONSOL to BREAKOUT AND squeeze_duration was > 20
|
|
84
|
-
→ The squeeze has been significant and the breakout is more likely
|
|
85
|
-
to produce a sustained move.
|
|
86
|
-
|
|
87
|
-
--------------------------------------------------------------------------------
|
|
88
|
-
DEPENDENCY ORDER
|
|
89
|
-
--------------------------------------------------------------------------------
|
|
90
|
-
1 If squeeze_duration = 0: no active squeeze; no buildup to evaluate.
|
|
91
|
-
2 Read volatility_squeeze for current depth.
|
|
92
|
-
3 Read squeeze_energy for integrated depth × time.
|
|
93
|
-
4 Classify duration (short/moderate/extended) per ranges above.
|
|
94
|
-
5 Regime for compression/breakout context.
|
|
95
|
-
|
|
96
|
-
--------------------------------------------------------------------------------
|
|
97
|
-
INVALIDATION CONDITIONS
|
|
98
|
-
--------------------------------------------------------------------------------
|
|
99
|
-
No specific invalidation beyond the parent volatility_squeeze indicator.
|
|
100
|
-
If volatility_squeeze is in warm-up (< 50 ticks since reset), squeeze_duration
|
|
101
|
-
may show extended values from the warm-up period. Treat as unreliable.
|
|
102
|
-
|
|
103
|
-
--------------------------------------------------------------------------------
|
|
104
|
-
ANTI-PATTERNS — DETECTABLE MISUSE CONDITIONS
|
|
105
|
-
--------------------------------------------------------------------------------
|
|
106
|
-
IF squeeze_duration > 60 is treated as urgency to enter a trade
|
|
107
|
-
→ INCORRECT TIMING LOGIC. Long squeeze duration means energy has been
|
|
108
|
-
building — it does NOT tell you when the release will occur. A squeeze
|
|
109
|
-
can persist for 200+ ticks. Duration informs the MAGNITUDE of the
|
|
110
|
-
expected move when it occurs, not the TIMING.
|
|
111
|
-
|
|
112
|
-
IF squeeze_duration resets to 0 is missed and old duration is used
|
|
113
|
-
→ DATA FRESHNESS CHECK REQUIRED. squeeze_duration resets immediately
|
|
114
|
-
when volatility_squeeze >= 0.8. If you are caching the prior reading,
|
|
115
|
-
you may be working with stale duration data. Always re-read per tick.
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
================================================================================
|
|
2
|
-
INDICATOR: SQUEEZE_ENERGY — VOLATILITY SQUEEZE ENERGY
|
|
3
|
-
================================================================================
|
|
4
|
-
id: squeeze_energy
|
|
5
|
-
data_field: indicators.squeeze_energy
|
|
6
|
-
type: NUMERIC
|
|
7
|
-
range: [0, ∞) — resets to 0 whenever squeeze breaks
|
|
8
|
-
precision: 3 decimal places
|
|
9
|
-
update_rate: per_tick
|
|
10
|
-
latency_profile: COINCIDENT
|
|
11
|
-
|
|
12
|
-
--------------------------------------------------------------------------------
|
|
13
|
-
CONSTRUCT
|
|
14
|
-
--------------------------------------------------------------------------------
|
|
15
|
-
squeeze_energy is the integrated measure of volatility compression, capturing
|
|
16
|
-
both HOW LONG and HOW DEEPLY the volatility has been squeezed. It combines the
|
|
17
|
-
time (duration) and depth (compression magnitude) of the current squeeze.
|
|
18
|
-
|
|
19
|
-
Formula (computed each tick while squeeze is active):
|
|
20
|
-
compressionDepth = 0.8 - indicators.volatility_squeeze
|
|
21
|
-
(positive only when volatility_squeeze < 0.8; deeper = larger value)
|
|
22
|
-
|
|
23
|
-
squeeze_energy = squeeze_duration × compressionDepth
|
|
24
|
-
= squeeze_duration × (0.8 - volatility_squeeze)
|
|
25
|
-
|
|
26
|
-
IF volatility_squeeze >= 0.8:
|
|
27
|
-
squeeze_energy = 0 (reset simultaneously with squeeze_duration)
|
|
28
|
-
|
|
29
|
-
Examples:
|
|
30
|
-
- Duration=10, squeeze_value=0.5: energy = 10 × 0.3 = 3.0
|
|
31
|
-
- Duration=30, squeeze_value=0.5: energy = 30 × 0.3 = 9.0 (3× longer)
|
|
32
|
-
- Duration=10, squeeze_value=0.2: energy = 10 × 0.6 = 6.0 (2× deeper)
|
|
33
|
-
- Duration=30, squeeze_value=0.2: energy = 30 × 0.6 = 18.0 (most energy)
|
|
34
|
-
|
|
35
|
-
squeeze_energy is the single best summary of "how much potential energy has built
|
|
36
|
-
up in this squeeze". It is zero when no squeeze is active and grows as long as
|
|
37
|
-
the squeeze persists.
|
|
38
|
-
|
|
39
|
-
--------------------------------------------------------------------------------
|
|
40
|
-
RANGE INTERPRETATION
|
|
41
|
-
--------------------------------------------------------------------------------
|
|
42
|
-
value = 0
|
|
43
|
-
No active squeeze OR squeeze just started. No meaningful energy accumulation.
|
|
44
|
-
|
|
45
|
-
value 0.1 - 3.0
|
|
46
|
-
Low energy. Short and/or shallow squeeze. Potential move is not yet
|
|
47
|
-
significant by historical comparison. Continue monitoring.
|
|
48
|
-
|
|
49
|
-
value 3.0 - 10.0
|
|
50
|
-
Moderate energy. Sufficient compression has built to support a meaningful
|
|
51
|
-
directional breakout when it occurs. This band represents most "ready to
|
|
52
|
-
break" squeeze setups.
|
|
53
|
-
|
|
54
|
-
value 10.0 - 25.0
|
|
55
|
-
High energy. Significant compression over extended duration and/or depth.
|
|
56
|
-
The breakout when it occurs is more likely to produce an outsized move.
|
|
57
|
-
This is an alert-level condition.
|
|
58
|
-
|
|
59
|
-
value > 25.0
|
|
60
|
-
Very high energy. Extreme sustained compression. Very rare in normal markets.
|
|
61
|
-
When seen, the eventual breakout should be expected to be substantial.
|
|
62
|
-
Activity_ratio and volume_change_point conditions at release are key.
|
|
63
|
-
|
|
64
|
-
--------------------------------------------------------------------------------
|
|
65
|
-
INDICATOR RELATIONSHIPS
|
|
66
|
-
--------------------------------------------------------------------------------
|
|
67
|
-
indicators.volatility_squeeze | REQUIRED_COMPANION
|
|
68
|
-
squeeze_energy is derived from volatility_squeeze depth.
|
|
69
|
-
Always verify volatility_squeeze is in squeeze state (< 0.8) alongside
|
|
70
|
-
any positive squeeze_energy reading.
|
|
71
|
-
|
|
72
|
-
indicators.squeeze_duration | COMPANION
|
|
73
|
-
Together with squeeze_duration, these three indicators form the complete
|
|
74
|
-
squeeze picture:
|
|
75
|
-
volatility_squeeze = current depth (real-time)
|
|
76
|
-
squeeze_duration = time in compression (tick count)
|
|
77
|
-
squeeze_energy = integrated depth × time (summary measure)
|
|
78
|
-
|
|
79
|
-
indicators.volume_change_point | ALERT COMPANION
|
|
80
|
-
When squeeze_energy is high AND volume_change_point.changePointProbability
|
|
81
|
-
is rising, it signals that the volume regime may be shifting — potentially
|
|
82
|
-
the initiation of the squeeze release. High energy + volume regime shift
|
|
83
|
-
is the most actionable combination.
|
|
84
|
-
|
|
85
|
-
indicators.market_structure | CONTEXT
|
|
86
|
-
IF squeeze_energy > 10 AND market_structure transitions to BREAKING_UP
|
|
87
|
-
or BREAKING_DOWN → the breakout is coming from a high-energy compressed
|
|
88
|
-
state. Highest conviction continuation expected.
|
|
89
|
-
|
|
90
|
-
indicators.hmi | POST-SQUEEZE DIRECTION
|
|
91
|
-
After squeeze_energy resets to 0 (squeeze broke), read hmi to determine
|
|
92
|
-
which direction the energy released in. This is the critical post-squeeze
|
|
93
|
-
directional inference step.
|
|
94
|
-
|
|
95
|
-
indicators.activity_ratio | TRIGGER COMPANION
|
|
96
|
-
IF squeeze_energy > 10 AND activity_ratio transitions from MODERATE/DEAD
|
|
97
|
-
to ACTIVE → new volume entering a compressed market. This is the most
|
|
98
|
-
common trigger for a squeeze release.
|
|
99
|
-
|
|
100
|
-
--------------------------------------------------------------------------------
|
|
101
|
-
DEPENDENCY ORDER
|
|
102
|
-
--------------------------------------------------------------------------------
|
|
103
|
-
1 If squeeze_energy = 0: no active squeeze; no energy has accumulated.
|
|
104
|
-
2 Read volatility_squeeze for current depth.
|
|
105
|
-
3 Read squeeze_duration for elapsed time.
|
|
106
|
-
4 Classify energy level per ranges above.
|
|
107
|
-
5 Monitor volume_change_point for rising changepoint probability.
|
|
108
|
-
6 Post-reset (squeeze broke): read hmi for direction of energy release.
|
|
109
|
-
|
|
110
|
-
--------------------------------------------------------------------------------
|
|
111
|
-
INVALIDATION CONDITIONS
|
|
112
|
-
--------------------------------------------------------------------------------
|
|
113
|
-
All invalidations from volatility_squeeze apply.
|
|
114
|
-
IF volatility_squeeze is in warm-up: squeeze_energy from that period is
|
|
115
|
-
unreliable.
|
|
116
|
-
|
|
117
|
-
--------------------------------------------------------------------------------
|
|
118
|
-
ANTI-PATTERNS — DETECTABLE MISUSE CONDITIONS
|
|
119
|
-
--------------------------------------------------------------------------------
|
|
120
|
-
IF high squeeze_energy is used as a directional indicator
|
|
121
|
-
→ INCORRECT. squeeze_energy tells you that a move is more likely to
|
|
122
|
-
be large when it comes. It says nothing about direction.
|
|
123
|
-
Only post-release hmi and regime provide direction.
|
|
124
|
-
|
|
125
|
-
IF squeeze_energy is monitored but release detection is missed
|
|
126
|
-
→ WATCH FOR RESET. When squeeze_energy drops from a high value to 0,
|
|
127
|
-
the squeeze has broken. The next readings of hmi and regime provide
|
|
128
|
-
the directional interpretation of the released energy.
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
================================================================================
|
|
2
|
-
INDICATOR: TF_ALIGNMENT — TIMEFRAME ALIGNMENT SCORE
|
|
3
|
-
================================================================================
|
|
4
|
-
id: tf_alignment
|
|
5
|
-
data_field: indicators.tf_alignment
|
|
6
|
-
type: NUMERIC
|
|
7
|
-
range: 0.0 to 100.0
|
|
8
|
-
precision: 1 decimal place
|
|
9
|
-
update_rate: per_tick
|
|
10
|
-
latency_profile: COINCIDENT
|
|
11
|
-
|
|
12
|
-
--------------------------------------------------------------------------------
|
|
13
|
-
CONSTRUCT
|
|
14
|
-
--------------------------------------------------------------------------------
|
|
15
|
-
tf_alignment measures what percentage of short-term timeframe momentum is moving
|
|
16
|
-
in the same direction as the macro (longer-term) trend.
|
|
17
|
-
|
|
18
|
-
Computation:
|
|
19
|
-
STEP 1: Determine macro direction using 4h, 6h, 8h, 12h, 24h changes only.
|
|
20
|
-
macroDir = sign(sum of those 5 TF changes) ∈ {-1, 0, 1}
|
|
21
|
-
|
|
22
|
-
STEP 2: For each short TF [1m, 3m, 5m, 15m, 30m, 1h, 2h], compute the
|
|
23
|
-
magnitude-weighted contribution toward or against macroDir.
|
|
24
|
-
|
|
25
|
-
Weights applied per TF (decaying):
|
|
26
|
-
1m: 1.00 | 3m: 0.95 | 5m: 0.90 | 15m: 0.85
|
|
27
|
-
30m: 0.80 | 1h: 0.75 | 2h: 0.65
|
|
28
|
-
|
|
29
|
-
For each short TF:
|
|
30
|
-
contribution = |change| × weight
|
|
31
|
-
IF sign(change) == macroDir: adds to alignedWeight
|
|
32
|
-
always adds to totalWeight
|
|
33
|
-
|
|
34
|
-
value = (alignedWeight / totalWeight) × 100
|
|
35
|
-
|
|
36
|
-
Special case: IF all short TFs are near zero (totalWeight ≈ 0):
|
|
37
|
-
Fall back to sign-agreement count rather than magnitude weighting.
|
|
38
|
-
|
|
39
|
-
tf_alignment specifically measures whether SHORTER timeframes (1m–2h) are
|
|
40
|
-
agreeing with the LONGER timeframe direction (4h–24h). It does NOT measure
|
|
41
|
-
whether all 12 TFs agree with each other.
|
|
42
|
-
|
|
43
|
-
A value of 100 means every short TF is moving in the same direction as the
|
|
44
|
-
macro trend. A value of 0 means every short TF is moving against the macro.
|
|
45
|
-
A value of 50 means perfectly split.
|
|
46
|
-
|
|
47
|
-
--------------------------------------------------------------------------------
|
|
48
|
-
RANGE INTERPRETATION
|
|
49
|
-
--------------------------------------------------------------------------------
|
|
50
|
-
value > 85
|
|
51
|
-
Extreme alignment. Every short timeframe contribution is directionally
|
|
52
|
-
consistent with macro. Short-TF price action is fully confirming the
|
|
53
|
-
longer-term trend. Historically associated with CASCADE and BREAKOUT
|
|
54
|
-
regimes. Maximum breadth state.
|
|
55
|
-
|
|
56
|
-
value > 70 AND value <= 85
|
|
57
|
-
High alignment. Most short-TF magnitude agrees with macro. The trend
|
|
58
|
-
has broad participation from intraday timeframes. Strong confirmation
|
|
59
|
-
of macro direction from the shorter stack.
|
|
60
|
-
|
|
61
|
-
value > 55 AND value <= 70
|
|
62
|
-
Moderate alignment. Majority of short-TF weight is directionally aligned,
|
|
63
|
-
but meaningful dissent exists. Some shorter TFs are countertrending.
|
|
64
|
-
Likely reflects normal pullbacks or consolidation within an established trend.
|
|
65
|
-
|
|
66
|
-
value > 40 AND value <= 55
|
|
67
|
-
Low alignment. Roughly split between short TFs agreeing and disagreeing
|
|
68
|
-
with macro. Directional inference is unreliable. The short-TF stack is
|
|
69
|
-
not confirming OR refuting the macro trend.
|
|
70
|
-
|
|
71
|
-
value <= 40
|
|
72
|
-
Divergence. The short-TF stack is predominantly moving AGAINST the macro
|
|
73
|
-
direction. This can represent:
|
|
74
|
-
- A reversal forming at the short-TF level
|
|
75
|
-
- A countertrend move before macro reasserts
|
|
76
|
-
- Transition period between regimes
|
|
77
|
-
Do not use macro-aligned directional signals during this state.
|
|
78
|
-
|
|
79
|
-
--------------------------------------------------------------------------------
|
|
80
|
-
TRAJECTORY — RATE OF CHANGE
|
|
81
|
-
--------------------------------------------------------------------------------
|
|
82
|
-
# tf_alignment does not have its own velocity field in the data feed.
|
|
83
|
-
# Assess trajectory by comparing consecutive readings or using hmi_velocity
|
|
84
|
-
# as a proxy (they tend to move together at turns).
|
|
85
|
-
|
|
86
|
-
Rising tf_alignment (→ recent readings higher than prior)
|
|
87
|
-
Short TFs are converging toward macro direction.
|
|
88
|
-
Alignment is broadening. Associated with momentum building.
|
|
89
|
-
|
|
90
|
-
Falling tf_alignment (→ recent readings lower than prior)
|
|
91
|
-
Short TFs are diverging from macro direction.
|
|
92
|
-
Alignment is narrowing. Associated with momentum fading or pullback.
|
|
93
|
-
|
|
94
|
-
tf_alignment < 50 while hmi is still positive
|
|
95
|
-
Short TFs have turned against macro. HMI is lagging.
|
|
96
|
-
The current HMI value overstates current alignment state.
|
|
97
|
-
|
|
98
|
-
--------------------------------------------------------------------------------
|
|
99
|
-
INDICATOR RELATIONSHIPS
|
|
100
|
-
--------------------------------------------------------------------------------
|
|
101
|
-
indicators.hmi | AMPLIFIES
|
|
102
|
-
tf_alignment measures breadth; hmi measures magnitude.
|
|
103
|
-
These are different but complementary dimensions of the same stack.
|
|
104
|
-
|
|
105
|
-
IF hmi >= 60 AND tf_alignment >= 80
|
|
106
|
-
→ Maximum signal quality. Both magnitude and breadth confirm direction.
|
|
107
|
-
|
|
108
|
-
IF hmi >= 60 AND tf_alignment < 50
|
|
109
|
-
→ HMI has high weighted sum but short TFs are not broadly aligned.
|
|
110
|
-
The high magnitude is concentrated — likely the 1h/2h TFs are
|
|
111
|
-
dominant while others are flat or opposing. Reduce confidence.
|
|
112
|
-
|
|
113
|
-
IF hmi < 30 AND tf_alignment > 70
|
|
114
|
-
→ High breadth but low magnitude. Many TFs agree on direction but
|
|
115
|
-
none have meaningful momentum yet. Low-energy directional state.
|
|
116
|
-
|
|
117
|
-
indicators.regime | CROSS_VALIDATE
|
|
118
|
-
CASCADE and BREAKOUT regimes imply tf_alignment should be >= 70.
|
|
119
|
-
IF regime = CASCADE_UP AND tf_alignment < 55:
|
|
120
|
-
→ Data may be stale or the regime transition just occurred.
|
|
121
|
-
Monitor for convergence.
|
|
122
|
-
|
|
123
|
-
IF regime = CHOP AND tf_alignment is near 50:
|
|
124
|
-
→ Expected. Both indicators consistently reflect disagreement.
|
|
125
|
-
|
|
126
|
-
indicators.directional_efficiency | COMPANION
|
|
127
|
-
tf_alignment measures directional breadth relative to macro.
|
|
128
|
-
directional_efficiency measures how cleanly price is moving in one
|
|
129
|
-
direction (low noise). They are complementary: high alignment +
|
|
130
|
-
high efficiency = strongest trending signal.
|
|
131
|
-
|
|
132
|
-
--------------------------------------------------------------------------------
|
|
133
|
-
DEPENDENCY ORDER
|
|
134
|
-
--------------------------------------------------------------------------------
|
|
135
|
-
1 Regime: if CHOP/CONSOL/RANGING, macro direction is undefined; tf_alignment
|
|
136
|
-
near 50 is expected and uninformative.
|
|
137
|
-
2 Read value and range bucket.
|
|
138
|
-
3 Cross-validate with hmi for magnitude-breadth divergence.
|
|
139
|
-
4 Assess recent trajectory (rising vs falling alignment) if consecutive
|
|
140
|
-
readings are available.
|
|
141
|
-
|
|
142
|
-
--------------------------------------------------------------------------------
|
|
143
|
-
INVALIDATION CONDITIONS
|
|
144
|
-
--------------------------------------------------------------------------------
|
|
145
|
-
IF regime = CHOP
|
|
146
|
-
→ macroDir is undefined (sum of 4h-24h changes is near zero).
|
|
147
|
-
tf_alignment near 50 is expected and uninformative.
|
|
148
|
-
|
|
149
|
-
IF all TF changes are near zero (very low volatility / illiquid period)
|
|
150
|
-
→ Magnitude weighting collapses to sign agreement. Result is noisy.
|
|
151
|
-
Cross-check with activity_ratio. If activity_ratio < 0.5: discard.
|
|
152
|
-
|
|
153
|
-
--------------------------------------------------------------------------------
|
|
154
|
-
ANTI-PATTERNS — DETECTABLE MISUSE CONDITIONS
|
|
155
|
-
--------------------------------------------------------------------------------
|
|
156
|
-
IF tf_alignment is used as a standalone direction signal
|
|
157
|
-
→ INCORRECT USE. tf_alignment measures alignment WITH macro direction.
|
|
158
|
-
It cannot tell you what macro direction is. You must know macroDir
|
|
159
|
-
(from the 4h-24h cluster) separately before interpreting alignment
|
|
160
|
-
as bullish or bearish context.
|
|
161
|
-
|
|
162
|
-
IF tf_alignment of 80% is interpreted as "80% of timeframes are positive"
|
|
163
|
-
→ INCORRECT INTERPRETATION. The percentage is MAGNITUDE-WEIGHTED alignment
|
|
164
|
-
with macro — not a head count of positive timeframes. A single 1h TF
|
|
165
|
-
with high magnitude can dominate the weighted result.
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
================================================================================
|
|
2
|
-
INDICATOR: VOLATILITY_SQUEEZE — GARCH VOLATILITY RATIO (SQUEEZE)
|
|
3
|
-
================================================================================
|
|
4
|
-
id: volatility_squeeze
|
|
5
|
-
data_field: indicators.volatility_squeeze
|
|
6
|
-
type: NUMERIC
|
|
7
|
-
range: [0, ∞) — practically [0.1, 1.5] in most conditions
|
|
8
|
-
precision: 3 decimal places
|
|
9
|
-
update_rate: per_tick
|
|
10
|
-
latency_profile: COINCIDENT
|
|
11
|
-
|
|
12
|
-
--------------------------------------------------------------------------------
|
|
13
|
-
CONSTRUCT
|
|
14
|
-
--------------------------------------------------------------------------------
|
|
15
|
-
volatility_squeeze measures the ratio of short-window to long-window GARCH
|
|
16
|
-
conditional volatility. It detects when volatility has compressed below historical
|
|
17
|
-
norms (a "squeeze") — indicating stored directional energy.
|
|
18
|
-
|
|
19
|
-
GARCH(1,1) model:
|
|
20
|
-
omega = 0.00001
|
|
21
|
-
alpha = 0.10 (weight on recent squared return)
|
|
22
|
-
beta = 0.88 (weight on prior conditional variance)
|
|
23
|
-
h[t] = omega + alpha × r[t-1]² + beta × h[t-1]
|
|
24
|
-
where r[t] = log return at time t
|
|
25
|
-
|
|
26
|
-
Two GARCH variance series computed:
|
|
27
|
-
short_window = 14 ticks → h_short (14-period GARCH conditional variance)
|
|
28
|
-
long_window = 50 ticks → h_long (50-period GARCH conditional variance)
|
|
29
|
-
|
|
30
|
-
Ratio:
|
|
31
|
-
value = sqrt(h_short / h_long)
|
|
32
|
-
|
|
33
|
-
This ratio compares current short-term GARCH volatility to the recent long-term
|
|
34
|
-
GARCH baseline. A value of 1.0 means current volatility is at its long-run norm.
|
|
35
|
-
|
|
36
|
-
CRITICAL: LOWER VALUES MEAN MORE COMPRESSION (MORE ENERGY STORED)
|
|
37
|
-
value < 0.8 → SHORT_TERM VOLATILITY IS COMPRESSED BELOW BASELINE
|
|
38
|
-
value >= 0.8 → NORMAL OR EXPANDING VOLATILITY
|
|
39
|
-
|
|
40
|
-
--------------------------------------------------------------------------------
|
|
41
|
-
RANGE INTERPRETATION — SQUEEZE STATES (BELOW 0.8)
|
|
42
|
-
--------------------------------------------------------------------------------
|
|
43
|
-
IMPORTANT: These are SQUEEZE conditions. The LOWER the value, the more
|
|
44
|
-
compressed the volatility. This is counterintuitive: a "lower squeeze value"
|
|
45
|
-
means MORE stored energy, not less.
|
|
46
|
-
|
|
47
|
-
value < 0.3 [EXTREME SQUEEZE]
|
|
48
|
-
Short-term GARCH volatility is less than 30% of the long-term norm.
|
|
49
|
-
Maximum compression. Historical breakouts after extreme squeeze are
|
|
50
|
-
often the most violent, as stored directional energy releases suddenly.
|
|
51
|
-
squeeze_duration and squeeze_energy will be at high values here.
|
|
52
|
-
|
|
53
|
-
value >= 0.3 AND value < 0.4 [ACTIVE SQUEEZE]
|
|
54
|
-
Short-term volatility is severely compressed. Still very significant
|
|
55
|
-
energy buildup. Price is in a tight consolidation with little realized
|
|
56
|
-
volatility. The market is coiling before a move.
|
|
57
|
-
|
|
58
|
-
value >= 0.4 AND value < 0.6 [MILD-ACTIVE SQUEEZE]
|
|
59
|
-
Meaningful compression. Volatility is building toward normal levels.
|
|
60
|
-
Not extreme but notable — this level typically precedes larger moves.
|
|
61
|
-
|
|
62
|
-
value >= 0.6 AND value < 0.8 [MILD SQUEEZE]
|
|
63
|
-
Light compression. Volume and volatility are slightly below the baseline.
|
|
64
|
-
Pre-squeeze signal or normal pullback in oscillation.
|
|
65
|
-
|
|
66
|
-
value >= 0.8 [EXPANSION / NO SQUEEZE]
|
|
67
|
-
Short-term volatility at or above its long-term GARCH norm. This is the
|
|
68
|
-
normal or expanding state. Price is realizing its typical or above-typical
|
|
69
|
-
movement. No stored energy condition.
|
|
70
|
-
|
|
71
|
-
value >> 1.0 (significantly above 1.0)
|
|
72
|
-
Current volatility is substantially above the long-run GARCH baseline.
|
|
73
|
-
Post-squeeze expansion or a volatility shock event.
|
|
74
|
-
|
|
75
|
-
--------------------------------------------------------------------------------
|
|
76
|
-
TRAJECTORY MATTERS
|
|
77
|
-
--------------------------------------------------------------------------------
|
|
78
|
-
# The direction of squeeze_value change is as important as the absolute level.
|
|
79
|
-
|
|
80
|
-
value moving from 0.8 → 0.5 → 0.3 (declining over multiple ticks)
|
|
81
|
-
Active compression building. Energy is accumulating. The lower it gets
|
|
82
|
-
and the longer it stays low, the more likely the breakout is material.
|
|
83
|
-
Monitor squeeze_duration and squeeze_energy for quantified buildup.
|
|
84
|
-
|
|
85
|
-
value moving from 0.3 → 0.6 → 0.9 (rising after a squeeze)
|
|
86
|
-
Squeeze is RELEASING. Energy is being converted to realized movement.
|
|
87
|
-
This is the expected transition AFTER the breakout move initiates.
|
|
88
|
-
By the time value is above 0.8, the acute breakout phase has begun.
|
|
89
|
-
|
|
90
|
-
value hovering near 0.5 for many ticks
|
|
91
|
-
Prolonged squeeze. Market is in sustained compression. Combined with
|
|
92
|
-
low squeeze_energy increase, this may indicate an information void
|
|
93
|
-
period. High-conviction break likely when catalyst arrives.
|
|
94
|
-
|
|
95
|
-
--------------------------------------------------------------------------------
|
|
96
|
-
INDICATOR RELATIONSHIPS
|
|
97
|
-
--------------------------------------------------------------------------------
|
|
98
|
-
indicators.squeeze_duration | REQUIRED_COMPANION
|
|
99
|
-
squeeze_duration counts consecutive ticks where value < 0.8.
|
|
100
|
-
Low squeeze_value + high squeeze_duration = sustained compression.
|
|
101
|
-
The combination is more meaningful than either alone.
|
|
102
|
-
|
|
103
|
-
indicators.squeeze_energy | REQUIRED_COMPANION
|
|
104
|
-
squeeze_energy = squeeze_duration × (0.8 - value) = compressionDepth × time.
|
|
105
|
-
This is the integrated measure of compression buildup.
|
|
106
|
-
High squeeze_energy = the most significant potential release.
|
|
107
|
-
|
|
108
|
-
indicators.regime | CONTEXT
|
|
109
|
-
IF regime = CONSOL AND volatility_squeeze < 0.5
|
|
110
|
-
→ Regime confirms consolidation AND volatility confirms compression.
|
|
111
|
-
Dual confirmation of coiling condition.
|
|
112
|
-
IF volatility_squeeze transitions above 0.8 AND regime shifts to BREAKOUT
|
|
113
|
-
→ The squeeze is releasing AND regime has confirmed direction.
|
|
114
|
-
Highest confidence breakout signal.
|
|
115
|
-
|
|
116
|
-
indicators.market_structure | CONTEXT
|
|
117
|
-
market_structure = CONSOL or BREAKING_UP after a squeeze period confirms
|
|
118
|
-
the structural context of both compression and release.
|
|
119
|
-
|
|
120
|
-
indicators.activity_ratio | CONTEXT
|
|
121
|
-
IF activity_ratio < 0.5 AND volatility_squeeze < 0.5
|
|
122
|
-
→ Compression in both volume AND GARCH volatility. Not just a quiet
|
|
123
|
-
period — both volume and price movement are compressed simultaneously.
|
|
124
|
-
|
|
125
|
-
indicators.hmi | CONTEXT
|
|
126
|
-
After a squeeze release, the direction of the hmi move (positive or negative)
|
|
127
|
-
provides the directional interpretation of the energy release.
|
|
128
|
-
volatility_squeeze confirms compression existed; hmi tells you which way
|
|
129
|
-
the energy released.
|
|
130
|
-
|
|
131
|
-
--------------------------------------------------------------------------------
|
|
132
|
-
DEPENDENCY ORDER
|
|
133
|
-
--------------------------------------------------------------------------------
|
|
134
|
-
1 Read value; classify SQUEEZE (< 0.8) vs EXPANSION (>= 0.8).
|
|
135
|
-
2 In squeeze: classify depth (EXTREME < 0.3, ACTIVE < 0.4, MILD < 0.6).
|
|
136
|
-
3 Read squeeze_duration and squeeze_energy for magnitude of buildup.
|
|
137
|
-
4 Regime for compression/breakout confirmation.
|
|
138
|
-
5 Post-release: read hmi for direction of energy release.
|
|
139
|
-
|
|
140
|
-
--------------------------------------------------------------------------------
|
|
141
|
-
INVALIDATION CONDITIONS
|
|
142
|
-
--------------------------------------------------------------------------------
|
|
143
|
-
IF fewer than 50 ticks of return history
|
|
144
|
-
→ Long GARCH window (50) has not converged. Value is unreliable.
|
|
145
|
-
Treat first 50-60 ticks after start/reset as warm-up.
|
|
146
|
-
|
|
147
|
-
IF a sudden extreme price move occurs (> 5% in 1 tick)
|
|
148
|
-
→ GARCH may spike sharply. One outlier return inflates h_short significantly.
|
|
149
|
-
Value may jump to >> 1.0 transiently. Wait for GARCH to stabilize.
|
|
150
|
-
|
|
151
|
-
--------------------------------------------------------------------------------
|
|
152
|
-
ANTI-PATTERNS — DETECTABLE MISUSE CONDITIONS
|
|
153
|
-
--------------------------------------------------------------------------------
|
|
154
|
-
IF value < 0.3 is treated as a trade signal on its own
|
|
155
|
-
→ INCORRECT. Extreme squeeze tells you compression exists but says
|
|
156
|
-
NOTHING about direction. Directional confirmation (hmi, regime shift,
|
|
157
|
-
market_structure breakout) is required before acting.
|
|
158
|
-
|
|
159
|
-
IF value > 0.8 is treated as "safe to trade"
|
|
160
|
-
→ INCORRECT INTERPRETATION. Value > 0.8 means volatility is expanding.
|
|
161
|
-
This is the RELEASE phase of a squeeze — often the most volatile
|
|
162
|
-
and fastest-moving period. This is when positions face highest
|
|
163
|
-
whipsaw risk, not least.
|
|
164
|
-
|
|
165
|
-
IF the relationship between value and compression is treated as "higher = more squeeze"
|
|
166
|
-
→ INVERTING THE SCALE. Lower value = more compressed. value = 0.2
|
|
167
|
-
is maximum squeeze, NOT a minimum. This is a common error with
|
|
168
|
-
ratio-based indicators. Remember: value compares short GARCH to
|
|
169
|
-
long GARCH — below 1.0 means short is below long.
|