TradingView
liquid-trader
May 1, 2023 6:29 PM

Tape (Time and Sales) 

Invesco QQQ Trust, Series 1NASDAQ

描述

OVERVIEW
This indicator is a synthesized "Tape" (aka. Time and Sales) from real time market data. It's specifically designed to be performant, expediting trading insights and decisions.

The table contains color-coded price action, volume size, and a timestamp data for each chart update. Because chart updates are independent of exchange orders, 1 chart update may combine more than 1 exchange and/or order. Even so, you're able to see very small and fast order flow changes, made possible by measuring real time volume differentials, and correlating them with price action.

Real time volume differentials are required for this indicator to be most useful. This is not ideal for historical analysis or TradingViews Replay feature.

INPUTS
You can can configure:
  • Table Position and Text Size
  • The Timestamp (visibility, format, timezone)
  • The number of lines to print
  • Volume Parameters (minimum size, large sizes, decimal precision)
  • Highlighting and Enlarging large sized prints
  • All the colors


DEV NOTES
This script illustrates:
  • The complimentary nature of loops and arrays
  • A method for iterative table management

版本注释

Minor cleanup.

版本注释

Added bar volume metrics: Up, Down, Absorbed, Total, Ratio, and Move.

Metrics adopt the bars timescale and reset with each new bar. They are off by default, but will display above the tape when enabled. You also have the ability to specify signal levels (where you would like each metric to be highlighted).

↑ Up is the total bar volume correlated with rising prices.
↓ Down is the total bar volume correlated with falling prices.
→ Absorbed is the total bar volume correlated with unchanging prices. Aka. the price absorbed the volume.
+ Total is the sum of all bar volume.
% Ratio is the ratio between up and down bar volume. Up volume is the numerator in positive ratios and Down volume is the numerator in negative ratios. Absorbed volume is added to the denominator of both positive and negative ratios.
⇅ Move is the bar volume of a continuous directional move. This excludes Absorbed volume.
☳ Accumulation is the bar volume accumulating at the current price. Accumulation is different from Absorbed because it includes the volume of the last price change, and resets back to 0 at the next price change.

版本注释

Added ability for traders to specify the tables frame and border (width and color).

版本注释

• Minor improvements to array management.

版本注释

• Inputs were set to not display in the status line, minimizing chart clutter.

版本注释

Substantial edits, aimed at improving performance.
• Added / set max_bars_back to 0, reducing historical buffer requirements for all variables.
• Eliminated all unnecessary var declarations to eliminate their performance penalty.
• Put the core logic inside a single iteration loop to force variables declared inside the loop to lose their historical data after each execution.
• Changed the price / volume source to be a 1 second chart, encouraging prints to be more frequent and granular.
• Added the ability to specify if the newest data should print at the top or bottom of the tape.
• Other minor changes.

版本注释

• Refined the tape inversion feature.
• Adjusted setting order and display.

版本注释

• Bug fix. The ratio now resets when the bar closes, rather than being reset every tick.

版本注释

• Added ability for users to specify if they have a Premium account.

The print frequency and precision relies on chart updates. The most granular data non Premium users have access to is a 1 minute chart, which tends to update about once every second. This update interval can aggregate volume changes into a single print rather than showing each volume change as a unique print.

Premium accounts have access to sub-minute timeframe data, which can update intra-second. This means chart update intervals better align with volume changes, lending itself to more frequent and precise prints.

If you select "Premium" and do not in fact have a Premium account, the script may break when it tries to request data the account type does not have access to.
评论
Sagittaire7
Fantastic tape considering the limitations of TradingView data!
ajcleveland
@Sagittaire7, Agreed. TV is dependent on their Brokers to provide, but when you are ProP Trading, Tradovate wants you to pay more money, so I will not, so I use TOS to get the Market Internals and Time and Sales, but this indicators give me half. I need a Market Internals that give ES, NQ, RTY, YM, I have two but I need the RTY and YM, anyone know. BTW. The usual MI (VOLD, ADD, Tick and Trin)
System2021
thank you for sharing sir great indicator i have a question. is ther a option to be shown the wining power of trades in sertain timeframe. for example in 5 min time who is winnig the battle, bulls or bears, is there more sellers or buyers .
liquid-trader
@System2021, That's a great idea. Because this indicator measures price and volume, I think the best I could do is provide directional metrics within a charts bar timeframe. For example, total up volume (and down volume) in a 5 min bar chart. Is that what you're looking for?
liquid-trader
@System2021, updated the script to include metrics that help measure bullishness / bearishness within a bars timeframe.
leQueet
@liquid-trader, appreciate the effort wish I could comment with a cheer but once the $$$ accumulate my 1st 500 will be dedicated to you.
liquid-trader
@leQueet, 🥰
leQueet
@liquid-trader, seems you trade more or less the same way I do if you do not mind sharing your twitter handle(if on it) so we can share trade ideas, that if you are keen. 🤝
philipbianchi
@liquid-trader, hey there, this indicator is really interesting and the measure for bullishness / bearishness within a bars timeframe is a good feature to have. Is it possible in your opition to add a feature of "highlight candles " if certain measures hit target ? For example if x ratio and x up highlight this 5 min candle
liquid-trader
@philipbianchi, I'll see how I might be able to work this in.
更多