TradingView
Sharad_Gaikwad
26 set 2022 17:40

Tick Statistics 

Bitcoin / TetherUSBinance

Descrizione

Tick Statistics:

I have seen many questions/queries related to tick data in TV telegram channels. This script will help pine scripts to understand how ticks work, how to capture and process tick data.

This is an educational indicator script for pine scripters.

The indicator shall work only on real time candles. Tick data capture is initiated as soon as indicator is loaded on the chart. You might not get correct statistics on 1st candle in case indicator is loaded when real time candle is in progress, in such case you can monitor the statistics generated for subsequent candles.
Generated statistics is shown on the chart by placing 2 diamond shapes above and below the candle.

Diamond shape below the candle will have candles ‘tick data’ listed in a table. This can be view by placing mouse pointer on the diamond shape. Refer to point 1 below for more details.

Diamond shape above the candle will have statistics as mentioned in point no 2 onwards. To view the statistics place the mouse point on the diamond shape. The shape will appear in green color when both tick price and tick volume are both moving in the same direction. The diamond shape in red color means tick price and tick volume are moving in opposite direction.
The script captures tick by tick data and generate statistics below:
1. List of tick data with details below: (this is stored in the diamond shape placed below the candle)
a. Tick no
b. Tick type – Up tick (Up), Down tick (Dn), No change (--)
c. Tick price
d. Volume
e. Price difference (as compared to previous tick price)
f. Volume difference (as compared to previous tick volume)

2. Tick statistics
a. Total ticks
b. Number of up ticks
c. Number of down ticks
d. Number of No change ticks

3. Volume Statistics
a. Total volume
b. Up tick volume
c. Down tick volume
d. Volume associated with ticks where there is no change
e. Candle volume (just for reconciliation purpose)

4. Max-min statistics
a. Max volume = <<volume>> at price = <<price>> at tick no = <<tick no>>
b. Min volume = <<volume>> at price = <<price>> at tick no = <<tick no>>
c. Max price = <<price>> at volume = <<volume>> at tick no = <<tick no>>
d. Min price = <<price>> at volume = <<volume>> at tick no = <<tick no>>

5. Candle summary
a. Price << Up >> (if price is up as compared to 1st tick <<Down>> otherwise
b. Volume <<Up>> (if up tick volume is more than down tick volume <<Down>> otherwise


Note di rilascio

Added Biggest tick and Smallest tick under Tick statistics
Commenti
PineCoders
Sharad_Gaikwad
@PineCoders, Thnaks for appreciation
KioseffTrading
This is awesome! (:
Sharad_Gaikwad
@KioseffTrading, Thanks for appreciation
PineCoders
This publication is now featured in our Editors' Picks: tradingview.com/scripts/editors-picks/ .
In the name of all TradingViewers, thank you for your valuable contribution to the community, and congrats!
UnknownUnicorn57830745
How does this use tick data? It uses the chart's timeframe data.
swapnilnawale1995
Hi how can we use this indicator like the NYSE tick index
Please guide
Sharad_Gaikwad
@swapnilnawale1995, Though not sure how the performance would be but one of the way i see is, gather tick data for group of stocks and identify number of stocks with up ticks and number of stocks with down ticks.
swapnilnawale1995
@Sharad_Gaikwad, thanks for prompt reply
to gather tick data for bank nifty do i need to apply this indicator to all the constituents and then analyse
if so, is there any efficient way to do this
i will be grateful for your suggestions
Sharad_Gaikwad
@swapnilnawale1995, Though bit complex better way is to create new script and gather tick data for each of the BNF constituents. I might try publishing indicator based on this, If you share more details about what is the purpose, how output should look, and how it helps in analysis
Altro