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.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
K — ÊÚÏÇÏ åãÓÇíå (KNN)
int
21
kNN
ÚãÞ ÍÇÝÙå ÂãÇÑí
int
500
maxHist
æÒä Çíå ãÏá ÊÇÑíÎí (KNN)
float
0.55
wKnn
æÒä Çíå ÝÔÇÑ áÍÙåÇí
float
0.45
wLive
ÂÓÊÇäå ÇØãíäÇä ÓíäÇá
float
0.57
thSig
äÑÎ ÝÑÇãæÔí ÏÞÊ (Forgetting)
float
0.97
accWin
äãÇíÔ áíÈá Êí˜åÇ
bool
true
showLbl
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.
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,
A complex chart overlay that draws bullish, bearish and neutral forecast objects, filtered by a minimum confidence and a strategy filter such as trend following or mean reversion. It estimates the next likely pattern with a Bayesian style probability, tracks r
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
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
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
The Expectation Maximization Gaussian Mixture Regime indicator clusters market states into two to five components using an online Expectation-Maximization Gaussian Mixture Model. It processes three input features: volatility-normalized momentum, relative volat