RE:CZ

Market State Variable Modeling Scheme for Three-Body Gating

Quantitative Finance

👤 Financial quantitative analysts, market researchers, and technical personnel interested in financial market modeling and gating mechanisms
Building on the three-body dynamics hypothesis and gating mechanism concept, this paper systematically outlines the modeling scheme for market state variables δ (premium), μ (momentum), and σ (volatility). The core innovation lies in the definition of δ: through the volume gravitational field model, nonlinear operations (Gaussian kernel functions and gradient calculations) are introduced to maintain its independence from μ and σ. μ is defined as the exponential moving average of returns to extract trend information; σ is defined as the standard deviation of returns to measure volatility amplitude; δ is based on the distribution of volume along the price axis, calculating the regression force when prices deviate from high-volume concentration areas. The article details the specific steps for calculating these three variables from candlestick sequences, including parameter settings and independence arguments, providing a new modeling framework for financial market analysis.
  • ✨ δ (premium) is defined through the volume gravitational field model, introducing nonlinear operations to ensure independence from μ (momentum)
  • ✨ μ is defined as the exponential moving average of returns, and σ is defined as the standard deviation of returns
  • ✨ Specific steps and parameter recommendations for calculating δ, μ, and σ from candlestick sequences
  • ✨ Independence arguments for the three variables (δ, μ, σ) are based on nonlinear operations and different information sources
  • ✨ Kernel functions (e.g., Gaussian kernel) model psychological anchoring effects, with bandwidth adaptable to volatility
📅 2026-02-10 · 1,581 words · ~8 min read
  • Market State Variables
  • Three-Body Gating
  • Volume Gravitational Field
  • Momentum
  • Volatility
  • Premium
  • Financial Modeling
  • Nonlinear Operations

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: δ\delta, μ\mu, and σ\sigma.

Input: Candlestick sequence (Ot,Ht,Lt,Ct,Vt)(O_t, H_t, L_t, C_t, V_t).

1. μ\mu (Momentum): Moving Average of Returns

Let the logarithmic return be rt=lnCtlnCt1r_t = \ln C_t - \ln C_{t-1}. Momentum is defined as the exponential moving average of returns:

μt=EMA(rt,nμ)\mu_t = \text{EMA}(r_t, n_\mu)

μ\mu 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 rtr_t itself is a difference component.

This is essentially the same as the signal in a dual moving average strategy: EMAfastEMAslow\text{EMA}_{fast} - \text{EMA}_{slow} is also a linear filter of rtr_t (can be strictly proven), differing only in the impulse response shape. Therefore, there is no controversy in modeling μ\mu; any momentum indicator is a linear function of rtr_t, with the only difference being the filter parameters.

2. σ\sigma (Volatility): Standard Deviation of Returns

σt=StdDev(rt,nσ)\sigma_t = \text{StdDev}(r_t, n_\sigma)

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 σ\sigma 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 σ\sigma and μ\mu; they represent independent information dimensions.

3. δ\delta (Premium): Volume Gravitational Field Model

3.1 Why δ\delta Cannot Be Defined by Deviation from a Moving Average

In the hypothesis, δ=(SS)/S\delta = (S - S^*) / S^*. If a moving average is used as SS^*, it can be strictly proven that:

lnStEMA(lnSt,N)=λαEMA(rt,N)\ln S_t - \text{EMA}(\ln S_t, N) = \frac{\lambda}{\alpha} \cdot \text{EMA}(r_t, N)

where λ=1α\lambda = 1 - \alpha. 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 δ\delta defined using a moving average is linearly correlated with μ\mu 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, δ\delta will degenerate into a variant of μ\mu.

To make δ\delta independent, a nonlinear operation must be introduced.

3.2 Intrinsic Value is Endogenous to the Market: Psychological Anchoring Effect

We posit that intrinsic value SS^* 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, SS^* 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 ViV_i traded at price PiP_i exerts a "gravitational pull" on the current price StS_t. Anchor points do not need to be defined—they naturally emerge as high-density regions of the gravitational field.

3.4 Kernel Function K(S,P)K(S, P): Psychological Model of the Anchoring Effect

The kernel function K(S,P)K(S, P) describes: For a person who traded at price PP, how strong is their anchoring effect when the price becomes SS?

We choose the Gaussian kernel:

K(S,P)=exp((SP)22h2)K(S, P) = \exp\left(-\frac{(S - P)^2}{2h^2}\right)

hh is the bandwidth parameter, representing the radius of influence of the anchoring effect. hh can be set as a multiple of the current volatility σ\sigma, 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 δ\delta, 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 (S<PS < P) and the loss side for the seller (S>PS > P) 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 S<PS < P (long loss side) and weaker for S>PS > P (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 δ\delta: Gradient of the Gravitational Field

Define the volume gravitational field:

F(S)=iVieκ(tti)K(S,Pi)F(S) = \sum_i V_i \cdot e^{-\kappa(t - t_i)} \cdot K(S, P_i)

where eκ(tti)e^{-\kappa(t - t_i)} is the time decay—older trades have a weaker anchoring effect.

δ\delta 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"):

δt=FSS=St=iVieκ(tti)PiSth2exp((StPi)22h2)\delta_t = -\frac{\partial F}{\partial S}\bigg|_{S=S_t} = \sum_i V_i \cdot e^{-\kappa(t - t_i)} \cdot \frac{P_i - S_t}{h^2} \cdot \exp\left(-\frac{(S_t - P_i)^2}{2h^2}\right)

Behavioral characteristics:

  • StS_t at the center of a volume concentration zone: Gravitational pulls from both sides cancel symmetrically, δ0\delta \approx 0 (no premium).
  • StS_t deviates from a concentration zone: Gravitational pull becomes asymmetric, δ\delta points towards the concentration zone (premium exists, regression force is present).
  • StS_t 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 μ\mu and σ\sigma

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 δ\delta: Discretization of the Price Axis

Accumulating all historical trades tick-by-tick is impractical. A practical approach is to discretize the price axis into NN bins and maintain a gravitational mass vector G[1..N]G[1..N].

Step 1: Candlestick Volume Allocation

The volume VtV_t of each candlestick needs to be allocated along the price axis. Candlesticks only provide OHLCV, not tick data. A reasonable approximation: uniformly distribute VtV_t across all bins within the range [Lt,Ht][L_t, H_t].

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 GG vector:

G[:] *= exp(-κ)

Step 3: Calculate δ\delta

δ[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 StS_t (e.g., the range where PjSt<3h|P_j - S_t| < 3h).

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 hh to ensure the smoothness of the kernel function.

5. Independence of the Three Variables

Variable Pair Why Independent
μ\mu vs σ\sigma Calculation of σ\sigma involves squaring/absolute value operation (nonlinear), discarding directional information.
δ\delta vs μ\mu δ\delta is based on the distribution of volume along the price axis (kernel density estimation + gradient). μ\mu is based on linear filtering of returns. Kernel density estimation is a nonlinear operation, and δ\delta's input includes volume VtV_t, which is information μ\mu does not use at all.
δ\delta vs σ\sigma Similarly, δ\delta depends on the volume distribution structure, while σ\sigma depends only on the magnitude of returns.

Key point: The independence of δ\delta 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 δ\delta degenerates into a variant of μ\mu.

6. Parameter Summary

Parameter Meaning Suggested Range
nμn_\mu Momentum smoothing window Consistent with the moving average parameters of the signal strategy
nσn_\sigma Volatility calculation window Same as nμn_\mu or slightly larger
hh Kernel function bandwidth (radius of anchoring effect) Can be set as cσtc \cdot \sigma_t, adaptive
κ\kappa Time decay rate (forgetting speed of anchoring effect) Needs to be determined experimentally

The design h=cσth = c \cdot \sigma_t makes the bandwidth adaptive to market state: the anchoring effect has a wider range during high volatility and a narrower range during low volatility. cc is a dimensionless constant.

References

See Also