This script is a further exploration of 'ticks' (only on realtime - live bars), based on my previous script:
-https://www.tradingview.com/script/CFxw8CK3-Tick-up-down/?utm_source=notification_email&utm_medium=email&utm_campaign=notification_comment#tc8272921-

What are 'ticks'?
... Once the script’s execution reaches the rightmost bar in the dataset, if trading is currently active on the chart’s symbol,
then Pine indicators will execute once every time an update occurs, i.e., price or volume changes ...
(tradingview.com/pine-script-docs/en/v5/language/Execution_model.html)

This script has 2 parts:

  • 1) Option: ' Tick up/down'
    This is a further progression of previous work.
    During bar development, every time there is an update (tick), a dot is placed.
    If for example there is 1 tick (first of new bar), a dot will be placed on 1,
    if it is the 8th tick off that bar, there will be a dot placed on 8.

    While my previous script had the issue that there was an upper limit per bar (max 32),
    this script (because it is working with labels) can place max 500 dots.
    https://www.tradingview.com/x/iL8zKlTw/https://www.tradingview.com/x/wo6TogRZ/

    For each bar this is better, it has to be mentioned though that looking in history, once the limit of 500 has been reached,
    you'll notice the last ones are being deleted. This is one of the reasons the script is not suitable for higher timeframes
    (1h and higher, even higher than 5 minutes can give some issues if it is a highly traded ticker), if a bar would have more
    than 500 ticks, they won't be drawn anymore (which is not desirable of course)

  • 2) Option: ' Tick progression'
    These are the same ticks, but placed on the candle itself, or you can show the candle:
    https://www.tradingview.com/x/Ytbrl1LQ/https://www.tradingview.com/x/p4ZSujGE/
    Or 'without' candle (or 'black' colour):
    https://www.tradingview.com/x/J4lrBUFK/https://www.tradingview.com/x/Hd1tS7ht/https://www.tradingview.com/x/aiCTJzBX/

    When 'No candles' are enabled, the 'candles' get the colour at the right.


At the moment it is not possible to drawn between 2 candles, this technique uses labels with 'text',
each tick on a candle will have a 'space' added, so you can see a progression to the right.
https://www.tradingview.com/x/bpKZvn7l/
https://www.tradingview.com/x/WvwhqDXw/

Colours
- if price is higher than previous tick price -> green
- if price is lower than previous tick price -> red
- otherwise -> blue (dimmed)

There are options to choose the 'dot', when choosing 'custom',
just enter (copy/paste) your symbol of your choice in the 'custom' field:
https://www.tradingview.com/x/tADKTWnB/
https://www.tradingview.com/x/V7VC91nd/

Caveats:
- Labels and text will not always be exactly on the price itself
- The scripts needs more testings, possibly some ticks don't always get drawn as they should.
The lower the timeframe, the more possible issues can occur
- Since (candle option) the dots move to the right, the higher the timeframe and/or the more ticks,
the sooner ticks will go in the area of next candle.
That's why I made a separate 'start symbol'
-> This is the very first tick on each candle, then you can zoom in/out more easily until the dots don't merge into each other candle area:
https://www.tradingview.com/x/0xx1IH3Q/
https://www.tradingview.com/x/YaJMnk8X/

A timeframe higher than 5 minutes mostly won't be feasible I believe

This script wouldn't be possible without the help of LucF, also because of his script
https://www.tradingview.com/script/tNG177SV-Realtime-5D-Profile-LucF/

With very much respect I am hugely inspired by him! Many Thanks to him, Tradingview, and everything associated with them!

Cheers!
educational

Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının yazarı komut dosyasını açık kaynak olarak yayınlamıştır, böylece yatırımcılar betiği anlayabilir ve doğrulayabilir. Yazar çok yaşa! Ücretsiz olarak kullanabilirsiniz, ancak bu kodun yayında yeniden kullanımı Ev kurallarına tabidir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?


PineCoder: pinecoders.com

- We cannot control our emotions,
but we can control our keyboard -

Feragatname