It is currently the evening of February 10, 2026.
Market State Variable Modeling Scheme for the Three-Body Gating
Building upon the Three-Body Dynamics Hypothesis and the Concept of the Gating Mechanism, this article outlines the specific modeling scheme for the three market state variables: , , and .
Input: Candlestick sequence .
1. (Momentum): Moving Average of Returns
Let the logarithmic return be . Momentum is defined as the exponential moving average of returns:
is the output of the price sequence after band-pass filtering, extracting the "mid-frequency" directional movement—i.e., the trend. High-frequency noise is smoothed out by the EMA, and low-frequency drift is removed because itself is a difference component.
This is essentially the same as the signal in a dual moving average strategy: is also a linear filter of (can be strictly proven), differing only in the impulse response shape. Therefore, there is no controversy in modeling ; any momentum indicator is a linear function of , with the only difference being the filter parameters.
2. (Volatility): Standard Deviation of Returns
This is the rolling window standard deviation of logarithmic returns. It is the most classic realized volatility estimator, widely used in option pricing.
The calculation of involves a crucial nonlinear operation—squaring (or taking absolute values). This discards directional information, preserving only amplitude. From a signal processing perspective, this is an envelope detection operation: first, take the absolute value/square of the signal (nonlinear rectification), then apply low-pass filtering (rolling window averaging) to obtain the slow variation of oscillation amplitude.
Precisely because of this nonlinear operation, there is no linear relationship between and ; they represent independent information dimensions.
3. (Premium): Volume Gravitational Field Model
3.1 Why Cannot Be Defined by Deviation from a Moving Average
In the hypothesis, . If a moving average is used as , it can be strictly proven that:
where . That is, the deviation of price from its moving average is strictly equal to a constant multiple of the EMA(r) with the same period.
This means that defined using a moving average is linearly correlated with and does not constitute an independent dimension. Whether using a single-layer moving average or multi-layer cascaded moving averages, as long as it is a linear filter, will degenerate into a variant of .
To make independent, a nonlinear operation must be introduced.
3.2 Intrinsic Value is Endogenous to the Market: Psychological Anchoring Effect
We posit that intrinsic value is not an exogenous market variable but a consensus price "voted" on by market participants through trading behavior.
Core observation: Volume occurs only when buyers and sellers reach a price consensus. Price ranges with higher trading volume imply stronger market recognition and a stronger psychological anchoring effect for that price.
Therefore, is not a single value but a distribution—the distribution of volume along the price axis. Areas of high volume concentration are consensus zones (consolidation ranges, support/resistance bands), while areas of low volume are non-consensus zones (areas where price moves rapidly through).
3.3 From Discrete Anchor Points to a Continuous Gravitational Field
A natural idea is to first identify volume concentration zones (anchor points) and then calculate the price deviation from these anchors. However, anchor point identification itself requires peak detection, introducing an additional modeling layer and parameters.
A cleaner approach: Do not explicitly identify anchor points; let each trade directly exert an anchoring effect on the current price.
Each unit of volume traded at price exerts a "gravitational pull" on the current price . Anchor points do not need to be defined—they naturally emerge as high-density regions of the gravitational field.
3.4 Kernel Function : Psychological Model of the Anchoring Effect
The kernel function describes: For a person who traded at price , how strong is their anchoring effect when the price becomes ?
We choose the Gaussian kernel:
is the bandwidth parameter, representing the radius of influence of the anchoring effect. can be set as a multiple of the current volatility , making it adaptive to market conditions—people tolerate a wider range of "reasonable prices" during high volatility.
The shape of the kernel function encodes psychological assumptions. Different kernels will produce different , leading to different gating effects. The quality of the gating effect, in turn, validates which psychological model is closer to reality.
The first version uses a symmetric Gaussian kernel. However, the kernel function might be asymmetric for the following reasons:
Every trade involves both a buyer and a seller. At first glance, the loss side for the buyer () and the loss side for the seller () are opposite, and the asymmetry should cancel out. However, the disposition effect breaks this symmetry—people tend to sell winning positions and hold losing positions. This means profitable parties gradually exit the market (anchoring effect disappears), while loss-making parties remain in the market (anchoring effect persists). After this layer of "survivor screening," the residual anchoring effect in the market is naturally biased towards the loss side.
Furthermore, in most markets (stocks, cryptocurrencies), there exists a long bias—significantly more participants are long than short. Therefore, the aggregate effect is: the anchoring effect is stronger for (long loss side) and weaker for (long profit side). This aligns with empirical observation—support levels are typically "harder" than resistance levels.
In the future, a split normal kernel (Gaussian kernel with different left and right bandwidths) could be considered to model this asymmetry, and its significance could be verified by comparing gating effects.
3.5 Definition of : Gradient of the Gravitational Field
Define the volume gravitational field:
where is the time decay—older trades have a weaker anchoring effect.
is defined as the negative gradient of the gravitational field with respect to price (i.e., the direction and magnitude of the "pull-back force"):
Behavioral characteristics:
- at the center of a volume concentration zone: Gravitational pulls from both sides cancel symmetrically, (no premium).
- deviates from a concentration zone: Gravitational pull becomes asymmetric, points towards the concentration zone (premium exists, regression force is present).
- far from all volume zones: All gravitational pulls are weak (entering uncharted territory, anchoring effect disappears).
4. Specific Calculation from Candlestick Sequence
4.1 Calculation of and
Calculated directly from the closing price sequence, no special handling:
r[t] = log(C[t]) - log(C[t-1])
μ[t] = EMA(r, n_μ)[t]
σ[t] = StdDev(r, n_σ)[t]
4.2 Calculation of : Discretization of the Price Axis
Accumulating all historical trades tick-by-tick is impractical. A practical approach is to discretize the price axis into bins and maintain a gravitational mass vector .
Step 1: Candlestick Volume Allocation
The volume of each candlestick needs to be allocated along the price axis. Candlesticks only provide OHLCV, not tick data. A reasonable approximation: uniformly distribute across all bins within the range .
for bin_j in bins_between(L[t], H[t]):
G[j] += V[t] / count_of_bins_between(L[t], H[t])
Step 2: Time Decay
When a new candlestick arrives, apply time decay to the entire vector:
G[:] *= exp(-κ)
Step 3: Calculate
δ[t] = Σ_j G[j] · (P_j - S[t]) / h² · exp(-(S[t] - P_j)² / (2h²))
Due to the rapid decay of the Gaussian kernel, summation is only needed over bins near (e.g., the range where ).
4.3 Bin Design
It is recommended to divide bins with equal spacing on the logarithmic price axis, so each bin represents the same percentage price interval. The bin width should be much smaller than to ensure the smoothness of the kernel function.
5. Independence of the Three Variables
| Variable Pair | Why Independent |
|---|---|
| vs | Calculation of involves squaring/absolute value operation (nonlinear), discarding directional information. |
| vs | is based on the distribution of volume along the price axis (kernel density estimation + gradient). is based on linear filtering of returns. Kernel density estimation is a nonlinear operation, and 's input includes volume , which is information does not use at all. |
| vs | Similarly, depends on the volume distribution structure, while depends only on the magnitude of returns. |
Key point: The independence of stems from two nonlinear operations—the kernel function (Gaussian exponential) and gradient calculation—as well as an additional information source (volume). This fundamentally avoids the problem in the moving average deviation scheme where degenerates into a variant of .
6. Parameter Summary
| Parameter | Meaning | Suggested Range |
|---|---|---|
| Momentum smoothing window | Consistent with the moving average parameters of the signal strategy | |
| Volatility calculation window | Same as or slightly larger | |
| Kernel function bandwidth (radius of anchoring effect) | Can be set as , adaptive | |
| Time decay rate (forgetting speed of anchoring effect) | Needs to be determined experimentally |
The design makes the bandwidth adaptive to market state: the anchoring effect has a wider range during high volatility and a narrower range during low volatility. is a dimensionless constant.