# KNN Machine Learning Momentum

Predictive KNN engine with EMA trend filter and dynamic ATR-based SL/TP zones.

Canonical: https://prismaticalgos.com/compendium/algo/12374-knn-machine-learning-momentum
Record ID: 12374
Catalog rank: 2680 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trend Following & Directional (A)
Source: https://ctrader.com/products/3600
Evidence label (unverified): backtest_shown

## Scope and limitations

These are machine-extracted research records, not verified trading systems. Catalog rank measures specification detail and claimed evidence, not profitability. The catalog extraction pipeline did not independently backtest these records. Its separate selected testing ledger does not validate the wider corpus. Rules, labels and parameters can be incomplete or wrong; consult the original source and its reuse terms.

No endorsement, ownership claim or source-code reuse permission is implied.

## Extraction warnings

Opacity warnings: UNDEFINED ENTRY TERM: the entry conditions are prose naming a concept with no numeric definition, so two readers would implement them differently. Advisory only -- this does not affect the score.

## Recorded profile

- symbols: XAUUSD, XAGUSD
- timeframes: M5, M8, M15, M30, H1
- sessions: Not specified
- market_regime: any

## Indicators

- KNN: {"learning_window": 350, "prediction_threshold": 0.5}; applied to: close
- EMA: {"period": 20}; applied to: close
- ATR: {"period": 6}; applied to: high-low

## Recorded long-entry rules

- Bright Green Arrow

## Recorded short-entry rules

- Bright Red Arrow

## Recorded exit rules

- Not specified.

## Recorded filters

- EMA trend filter

## Risk controls

- Stop loss: SL distance = ATR × 3.4
- Take profit: TP distance = ATR × 1.6
- Position sizing: null
