OPEN-SOURCE SCRIPT

Time & Sales (Tape) - Table

118
What it is

A compact Time & Sales (tape) visualizer rendered as a table on your chart. It reconstructs prints from a lower timeframe (e.g., 1-second) or, optionally, streams them in Live Tick mode. Each row shows Date, Time, Side (▲ up / ▼ down), Last, and Volume (or Price Volume), with a dynamic scale bar summarizing buy vs sell activity across the visible rows.

Note for newcomers
This is not a “go-to” oscillator or a signal generator. It’s an old-school tape reader that shows the market’s pulse in real time—prints, pace, and the balance between buying and selling. It’s descriptive, not predictive. Use it to observe flow and context on top of your existing method (price/volume/structure), not as a stand-alone “magic wand.”


What it shows

Date: user-selectable format (YYYY-MM-DD, DD-MM-YYYY, MM-DD, DD-MM).

Time: formatted in the selected timezone (New York - UTC-5/-4 by default).

Side: ▲ when last price increased vs the previous print, ▼ when it decreased.

Last: last traded price (formatted to symbol tick size).

Volume: either raw Volume or Price Volume (= HLC3 × Volume).

Dynamic Scale Bar: stacked “blocks” showing the proportion of buy vs sell volume over the current table window.

How it works

When Implement By Timeframe
Aggregates prints from a user-selected lower timeframe (using request.security_lower_tf). If the chosen timeframe is invalid (i.e., higher than the chart), it automatically falls back to 1S. The table is rebuilt on the last bar update.

When Implement By Live Tick
Streams prints only while the chart is in real time (using barstate.isrealtime). This mode does not backfill historical ticks; it appends as new ticks arrive.

Inputs

Timezone: maps timestamps to your chosen session/region.

Date Format: YYYY-MM-DD, DD-MM-YYYY, MM-DD, or DD-MM.

Table Location / Size: choose where the table sits and its font size.

Show Dynamic Volume Scale Bar: toggle the header scale bar.

Implement By: Timeframe (lower-TF reconstruction) or Live Tick.

Timeframe: lower-TF source (e.g., 1S). Falls back automatically if invalid.

Length (№ of Rows): number of rows displayed.

Size Type

Volume = raw exchange volume.

Price Volume = HLC3 × Volume (emphasizes prints at higher prices).

Repainting

Does not repaint historical rows.

Timeframe mode reconstructs from completed lower-TF bars and draws a fixed history window.

Live Tick mode only adds rows in real time; no historical backfill.
The table itself is redrawn on the last bar update for layout, but previously printed rows aren’t revised with future data.

Notes & limitations

Lower-TF aggregation depends on data availability for your symbol/plan. If you request very granular timeframes far back in history, data may be limited by platform constraints.

For performance on long histories, reduce Length (№ of Rows) or use Timeframe mode with 1S/5S as appropriate.

“Price Volume” is a derived metric, not exchange-reported volume. Use it if you want to weight volume by price (HLC3).

Use case

This module provides a fast, at-a-glance tape read directly on the chart: spot bursts of buys vs sells, see the pace and size of flow, and reference exact date/time and last price without leaving your layout. It’s designed as a supporting tool for discretionary execution and for documenting trade ideas that reference tape behavior.

Credits

Timezone helper: n00btraders/Timezone (imported library).

Built for Pine v6.

Disclosure
This script is an educational visualization. It does not place trades and is not financial or investment advice.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.