How the Model Turns Vectors into Positions — Return Summaries and tanh
A visual walkthrough of JeTech models — encoding OHLC windows into vectors, summarizing next-day returns per similar-vector group, and mapping mean/dispersion through tanh into a position in [-1, 1].
> Status: Mechanism note. The example run did not pass the 5-year gate > (rolling 30-day average Sharpe), so the numbers below illustrate the > vector → return summary → position map. They are not a performance claim.
Question
Does a statistical model “predict price,” or does it ask: when a similar past pattern showed up, how were next-day returns distributed — and turn that into a position?
This post explains the second path with figures.
One-line summary
1. An encoder maps a recent OHLC window into a vector z. 2. Training windows’ z values are clustered into groups (default 32). 3. Each group stores next-day return mean, dispersion (std), and count. 4. Position is tanh(mean / (std + ε)) clipped to [-1, 1]; too-few samples → 0. 5. At inference: new window → z → nearest group → that group’s stored position.

Figure 1. The model does not forecast prices directly. It looks up a past next-day return summary attached to a pattern address z.



