KA Pattern Evaluation Overview

Quick Summary

1. Data Scope

2. Pattern Window

  1. Select a random window length between pattern_window_min and pattern_window_max.
  2. Choose a starting index that keeps the window fully inside the dataset.
  3. Compute the short-term synthetic return by blending baseline returns plus a configurable margin (placeholder until the real pattern logic lands).

Stored values:

3. Projection Windows

After the short-term window we advance by the same window length and capture:

These feed the trajectory chart on the KA detail page.

Example Pattern Trade (SOL_USDT, 2h)

This example mirrors a pattern captured in September 2025. All numbers are preserved here, so you can reference them even if the live database rotates entries.

Example pattern vs baselines
Short-term pattern (blue dot) versus long baseline (green), short baseline (orange), and raw price change (dashed) as we walk forward.

Trading walkthrough

  1. Entry: With the short-term return beating both baselines, bias is long. Wait for a 1–2 candle pullback toward the window low, then enter long, targeting a move back toward recent highs (around 216–218).
  2. Risk: Size the trade so that a full reversion to the long baseline (−4.2%) equals your 1R. Place a stop just under the training slice low (≈204) or 1R below entry, whichever is closer.
  3. Exit: Monitor projection windows—if the long baseline dips negative or price fails to hold above the short baseline for two consecutive projections, close the position. Otherwise trail a stop under higher lows.
  4. Optional short play: Should the short baseline stay dominant while price projections roll over (as around projection #8 above), look for a short entry near prior resistance (~226) with a stop above 228 and targets back to the long baseline trajectory.

These steps align with the guidance shown on the KA detail page’s “How to Trade This Pattern” section.

4. Scoring

5. Persistence Contract

KaEvaluationStorage writes:

simulation_json contains the short-term window, baselines, price anchors, and the projection array.

6. UI Notes

7. Future Hooks

If you need to trace a candidate end-to-end, start with the candidate_id in ka_pattern_candidates, open the KA detail view, and refer back to this summary.