TradingView
Trendoscope
12 jun 2022 16:04

Recursive Zigzag 

TRB / TetherUSBinance

Beskrivning

DO NOT USE THIS FOR TRADING. I am just showing off my new found recipe for pattern recognition ;)

This script generates recursive zigzags till there are only 2 pivots. So, the logic goes like this.

Level1 - Standard zigzag calculated from user input of length and max pivots using OHLC values
Level2 - Multi level zigzag calculated on the basis of level1 pivots.
Level3 - Multi level zigzag calculated on the basis of level2 pivots
..
..
..
Level(n) - Multi level zigzag calculated on the basis of level(n-1) pivots and number of derived pivots is 3 or less.

Ability to generate multi level zigzags were explored earlier in many scripts. But, they were just single level up from base and not fully recursive as this. This can be powerful piece of code for pattern recognition algorithms - will be exploring how useful these are going forward.

Versionsinformation

Made few corrections. Plus added option for better visualisation.

Versionsinformation

Update libraries

Versionsinformation

Updated zigzag library version

Versionsinformation

Update to latest rZigzag library

Versionsinformation

Updated library version.
Added option to use only confirmed bars.

Versionsinformation

Hopefully last update for today :)
Kommentarer
JohnBaron
awesome script!
Firsty_y
really Good !! nice job indeed !
Vibranium_Capital
Great script
OohGvwd
The script you make are pretty mind blowing tip my hat to you
Trendoscope
@OohGvwd, thanks very much mate :)
djmad
N1C3
finally going for elliott?
Trendoscope
@djmad, hmm.. not there yet. Just trying to improve my present pattern recognition scripts.
SiddWolf
Something's cooking 😋
Trendoscope
@SiddWolf, yeah but it is a slow cooker ;)
yudee9
Excellent 👌👌👌👌👏👏👏
Mer