← All scripts

Machine Learning: kNN-based Strategy

by capissimo · Indicator · Pine Script v5 · 7,139 likes

Verifiedbit-exact

Machine Learning: kNN-based Strategy by capissimo, a Pine Script v5 indicator, converted with PyneComp and run with PyneCore on BINANCE:BTCUSDT 30m: 3,795 plotted values compared with TradingView, every one bit-identical.

Plot match vs TradingView100%

Accuracy

  • Plots compared3
  • Plotted values compared3,795
  • Identical to the bit100%
  • Worst gapsame double
  • Transcendentals on the pathpow
  • Pearson correlation (min)1.000000

Run

  • Bars executed28,915
  • Run time71.63 s CPU
  • Per-bar time2.48 ms/bar CPU (per chart bar)

Data window

  • SymbolBINANCE:BTCUSDT
  • Timeframe30 min
  • From2025-01-01 00:00
  • To2026-08-26 09:00
  • Bars28,915

Source

  • Pine versionv5, converted to v6 by PyneComp
  • Script revisionv6
  • LicenseMPL-2.0

SHA-2560266aea9412cad1edec32fafa193308f0f791212dfc7c57e2b9c0615abe600b6

View on TradingView Permalink: Machine Learning: kNN-based Strategy

Measured 2026-09-27 · How this is measured · All scripts