This indicator calculates and plots a multi-factor order-flow analysis using tick counts, volume ratios, big player volume, recent delta momentum, and a K-nearest neighbors pattern matching algorithm.
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
Live Tick Counter evaluates bull and bear thresholds across multiple weighted factors and includes a factor dashboard table on the price chart. Notable limits include repainting behavior on live bars.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
History Lookback (bars)
int
50
lookback
Min Ticks Before Valid Signal
int
10
minTicks
Seed Pattern Memory From Chart History
bool
true
useSeed
Show Factor Dashboard
bool
true
showTable
W1: Tick Count Ratio
float
0.16
wTick
W2: Volume Ratio
float
0.20
wVol
W3: Big Player Volume
float
0.13
wBig
W4: Recent Delta Momentum
float
0.13
wMom
W5: Tick Streak
float
0.08
wStreak
W6: Pattern Match (KNN)
float
0.15
wKnn
W7: Trend Context
float
0.15
wCtx
Strong Bull Threshold %
float
65
strongUp
Show all 22 settings
Setting
Type
Default
Variable
Strong Bear Threshold %
float
35
strongDn
Dynamic Z-Score Threshold
float
1.3
zTh
Min Factor Agreement (of 7)
int
4
minAgree
Price/Delta Divergence Penalty
bool
true
useDiv
Adaptive Accuracy Scaling
bool
true
useAdapt
Auto-Weight + Factor Inversion
bool
true
useAutoW
Probability Calibration (bins)
bool
true
useCalib
KNN Neighbors
int
8
knnK
Momentum Window (ticks)
int
20
momWin
Big Tick Multiplier (x avg size)
float
1.5
bigMult
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.
Medallion Cipher is a separate-pane indicator that combines a four-state hidden Markov model (bull, bear, range, and crisis) with weighted confluence signals. It can include mean reversion, trend, session timing, pattern matching, Hurst exponent, Shannon entro
This overlay indicator screens a pasted list of up to forty symbols and draws a table on the price chart. It classifies bullish or bearish setups from the percent change between the current candle and the candle 250 bars back, then shows RSI with a simple movi
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,
This indicator plots a session VWAP of the typical price on the price chart. It marks an up triangle under a bar when close crosses above VWAP and a down triangle above a bar when close crosses below it. A star pinned at the top of the pane marks bars whose vo
This indicator uses a Hidden Markov Model (HMM) framework combined with an adaptive dual moving average engine and Directional Movement Index (DMI) features to identify market regimes (bullish, bearish, or ranging/chop). It calculates regime probabilities on e
Daily Volume is an overlay indicator that displays current daily volume statistics inside an on-chart table in the top-right corner. It fetches higher-timeframe daily data to report real-time current daily volume, yesterday's total volume, and a simple moving