TradingView
Trendoscope
23 set 2022 06:28

Micro Zigzag 

Bitcoin / TetherUSBinance

Descrizione

â‹…
Micro zigzag is created based on similar concepts as that of zigzag but by using lower timeframe intra-bar data. The lines join candle's high/low points but also depict how the price movement within the candle happened. That is, if the high of the candle is reached first, pivot from previous candle join the high first and then low and vice versa.

The output can also be viewed as advanced line chart.

🎲 Process

🎯 For every bar identify whether high came first or low by using lower timeframe data.
🎯 If high came before low, add high as high pivot first and then low as low pivot. If otherwise, add low as lower pivot first and then high as higher pivot.
🎯 When adding pivot, check if the last pivot is in the same direction as the new one. If yes, replace existing pivot if the new one goes beyond it. Ignore otherwise.
🎯 If the last pivot is of different direction as that one new one, then simple add the new pivot.

Note di rilascio

â‹…
Fixed a small bug noticed just after publishing :)

Note di rilascio

â‹…
Added input option to select Lower timeframe
Commenti
KioseffTrading
â‹…
AWESOME!!
Trendoscope
â‹…
@KioseffTrading, Thanks for your support as always mate :)
teamkamfitness
â‹…
Bro this is exactly what I have been looking for to teach myself single candle trend flips! Thank you so much!
Vulnerable_human_x
â‹…
Amazing Indicator. Thanks a ton. Really helpful. :)
Vulnerable_human_x
â‹…
Sir, When I use it Monthly or Weekly Timeframe, I get an error "Study references too many candles in history".
Trendoscope
â‹…
@Vulnerable_human_x, can be fixed by adding max bars back. Will do it soon.
Trendoscope
â‹…
@Vulnerable_human_x,Please check the latest update. I have added input option to select lower timeframe. When you are using monthly, please select 1h timeframe instead of 1 min - the error will go away.
Vulnerable_human_x
â‹…
@HeWhoMustNotBeNamed, Thank you sir.
Theterran
â‹…
Thanks for the explanation :)
Theterran
â‹…
Nice ! But why this script is not working at seconds time frame?
Altro