fikira

Tick up/down

fikira Wizard Zaktualizowano   
With this script I aim to explore 'ticks' a bit more (only on realtime - live bars).

... 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 ...
(https://www.tradingview.com/pine-script-docs/en/v5/language/Execution_model.html)

On every bar, everything gets reset.
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.

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

Because of the maximum allowed amount of plot's, I only can plot max. 32 dots, so max. 32 ticks.

Therefore this script is only useful on a 1 sec or 5 sec chart.

Otherwise, all ticks - updates more than 32/bar won't be displayed.

Frankly, I'm not sure about the benefit for trading, this script can be seen more as exploring what is out there.

Cheers!


Informacje o Wersji:
I've changed the script so you can set different scripts on top of each other.

Each script is limited to max 32 ticks/updates per bar, so if one bar has max 32
ticks/updates, 1 script is enough (ex. 1s or 5s)
In this example (1 minute TF), 1 bar has a lot more ticks/updates.

Now you can set for example 5 scripts on top of each other,
- the first one is set at 'start' 1 -> from tick 1 to 32 (the script counts 31 lines/ticks/updates above 'start')
- following is set 'start' 33, from tick 33 to 64
- next -> 65 to 96
- next -> 97 to 128
- next -> 129 to 160

In this way we can go to 160 ticks/update, which means, in this case, a 1 minute TF can show all ticks per bar

5 minutes won't be possible with highly traded markets, you would need 25 scripts or so, they would be squeezed together, making it illegible

Cheers!

LuxAlgo Dev: www.luxalgo.com
PineCoder: www.pinecoders.com

- We cannot control our emotions,
but we can control our keyboard -
Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?