Indicator · Pine Script v5 · On the chart

Atomic Tick Predictor — Statistical Next-Candle Engine

by morindok

Atomic Tick Predictor — Statistical Next-Candle Engine estimates the likelihood of the next candle direction by combining a K-Nearest Neighbors algorithm with live tick updates.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code256
Settings7inputs
LicenceNone stated
Last update7 weeks ago6 Sep 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Atomic Tick Predictor — Statistical Next-Candle Engine tracks up and down ticks, tick volume, and price pressure within the active bar using intra-bar variables, comparing these metrics against historical bar profiles stored in memory. Users can adjust the neighbor count, statistical memory depth, signal confidence threshold, and relative weights between historical patterns and live volume pressure. Prediction labels are drawn directly on the main chart.

Details

Published by

morindok on GitHub

Draws

On the price chart

Markets

Any symbol

Timeframes

M1-M5, M15-H1

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
K — ÊÚÏÇÏ åãÓÇíå (KNN)int21kNN
ÚãÞ ÍÇÝÙå ÂãÇÑíint500maxHist
æÒä Çíå ãÏá ÊÇÑíÎí (KNN)float0.55wKnn
æÒä Çíå ÝÔÇÑ áÍÙåÇífloat0.45wLive
ÂÓÊÇäå ÇØãíäÇä ÓíäÇáfloat0.57thSig
äÑÎ ÝÑÇãæÔí ÏÞÊ (Forgetting)float0.97accWin
äãÇíÔ áíÈá Ê혝åÇbooltrueshowLbl
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

114 stars

Volume Weighted Distance applies statistical and machine learning distance metrics between source prices and their rolling mean, weighted by volume, to identify local trend reversals. Users can select from Manhattan, Euclidean, Mahalanobis, Cosine Similarity,

Indicator v4 Oscillators & momentumVolume Repaints
Updated 1 year ago · None stated GitHub repository of Volume Weighted Distance

This indicator uses a two-dimensional k-nearest-neighbours model on scaled oscillator values to classify the current bar as buy, sell, or hold from similar historical states. Users select RSI, ROC, CCI, momentum, or all of them, and set the neighbour count, fa

Indicator v4 AI / machine learningOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Machine Learning: kNN-based Strategy (update)

ML Decision Tree Classifier

by haydarkadioglu
1 stars

The ML Decision Tree Classifier uses rule-based decision tree logic to evaluate trend, momentum, volume, and MACD indicators for market direction classification. It calculates exponential moving averages, relative strength index values, volume relative to a mo

Indicator v5 AI / machine learningTrend
Updated 8 months ago · None stated GitHub repository of ML Decision Tree Classifier

This indicator scores seven approaches on every bar: RSI, volume, VWAP, EMA trend, MACD, Bollinger Bands and a volume-delta module. Each score is weighted by a rolling record of that approach's recent agreement with price, and the weighted total must pass an a

Indicator v6 AI / machine learningOscillators & momentum
Updated 6 months ago · None stated GitHub repository of SignalForge v5 Volume Intelligence

More AI / machine learning scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers