OPEN-SOURCE SCRIPT
Aktualisiert

Tick Volume Direction Indicator

15 355
Tick Volume Direction Indicator

This indicator captures:
• tick volume
• tick direction

The settings are as follows:
• volume or base currency value selection.
• label distance (away from the low of the candle).
• Tick volume - on/off switch for tick volume.
• label size.
• Up tick move color.
• tick move absorbed - when the tick doesn't change position.
• Down tick move.

On the first initial load, it will have the existing volume data as "?" as tradingview doesn't have a history of each tick.

Be aware, any settings change you make will refresh the tick data from start.

This indicator is one of the best real-time ways of seeing buying and selling pressure.
Versionshinweise
label size works correctly.
Versionshinweise
(fixed label size)
Versionshinweise
fixed issue when changing timeframes.
Versionshinweise
minor adjustment. You should not see any negative values.
If you see any negative values. Let me know.
Versionshinweise
extended amount of labels that can be displayed.
Versionshinweise
re-wrote the logic.
Errors still might appear if you change timeframes frequently.
(you should not be seeing negative values, if you do then an error has occurred)

Based on how pine script operates with tick based data,
to avoid errors, it is advisable to:
• select your timeframe
• load the script
• adjust your settings
and leave it there for it to update.
If you need to change timeframes, it's advisable to repeat the steps.
Versionshinweise
added percentage increase/decrease.
Versionshinweise
hopefully fixed crashing if anyone else was having crashing.
Versionshinweise
rewrote the entire script.
added some extra features like the on / off options for each text item. Fixed a previous error where it would fail to load due to missing data (hopefully).
added an option to use decimal places for the values when dealing with fractional volume or dollar value.
Versionshinweise
TICK VOLUME DIRECTION 2.0 — how is this candle being built?

Complete redesign. The original showed a live breakdown of the forming bar's ticks — but it
counted script updates, which data vendors batch unpredictably, and it was blind on historical
bars. 2.0 rebuilds every bar from LOWER-TIMEFRAME data instead: an intrabar that closes higher
is an up-tick, lower is a down-tick, unchanged is equal — and each carries its volume. The same
logic runs on history and live, so everything here is consistent and backtestable.

━━━ THE PANEL ━━━
A live readout of the current bar:
• tick counts — up / down / equal
• volume per direction, net delta and its % share
• average print size per side — upVol÷upTicks vs dnVol÷dnTicks. Are the up-moves carried by
BIG prints (real interest) or dust? The fatter average print is the side with conviction.
• dominance meter — eight blocks showing who is building this candle
• tick pace — this bar's tick rate vs your recent average, pro-rated while the bar forms.
"2.0x normal" = the tape is suddenly twice as busy: something is happening.
• bar progress — time elapsed vs share of a normal bar's volume already traded. "38% elapsed,
130% of normal volume" = a front-loaded candle (highlighted when volume runs well ahead of time).
• tape (live) — optional raw print feed (▲▼▲▲…) of the forming bar. This row is best-effort by
nature (vendors batch updates); the measured rows above are the numbers to trust.

━━━ CONVICTION MARKS ━━━
When one side carried at least your threshold (default 70%) of a bar's directional volume, a
small triangle prints on the chart — historically too, so you can see how the market behaved
after past conviction bars. This is what the old version never could do.

━━━ ENGINES ━━━
• Free (minutes ladder): 1m intrabars for intraday charts, scaling up for higher timeframes.
Free plans have no seconds data — most meaningful on 1h and higher charts.
• Premium (seconds ladder): seconds bars — as close to real ticks as Pine allows.
NOTE: "ticks" are lower-timeframe bars, not literal exchange prints; no Pine script gets the
raw tape. Coverage of deep history is limited by TradingView's intrabar budget — recent bars
always have data, very old bars may not.

━━━ PRESETS ━━━
Full detail · Minimal (net + pace) · Scalper (counts + tape + pace) · Chart marks only ·
User defined (every row toggle is yours).

━━━ ALERTS ━━━
One alert → "Any alert() function call": dominance flip (up-tick volume takes the lead or loses
it), conviction bar close, and pace surge (≥ 2x normal tick rate).

━━━ HONESTY ━━━
The forming bar's numbers update live until the bar closes — expected for a real-time tool, not
repainting of history. Direction attribution from intrabar closes is an approximation of order
flow, not ground truth. Context tool — not a signal, not financial advice.

Portions of this script were developed with AI assistance; all logic was reviewed and tested by me.

━━━ CHANGELOG (2.0) ━━━
• Changed: tick engine rebuilt on lower-timeframe data — consistent between historical and live
bars (the old varip counter showed nothing on history and could miscount live).
• Added: conviction marks on the chart, with alerts — backtestable one-sided-volume bars.
• Added: tick pace (bar's tick rate vs recent normal, pro-rated while forming) + pace alerts.
• Added: average print size per side and bar progress (time vs volume) rows.
• Added: dominance meter, presets, panel position/size options + fine nudge offsets (push the
panel off the OHLC readout or other tables).
• Fixed: custom colors are now actually applied (the old color inputs did nothing).
• Kept: the live raw print feed, as an optional best-effort tape row.
Versionshinweise
minor tweak.
Versionshinweise
text sizes.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.