LonesomeTheBlue

Double Zig Zag with HHLL

Hello Traders,

Here Double Zig Zag with HHLL script is with you. it calculates 2 Zig Zag simultaneously and draws them, and also it calculates and puts Higher High, Lower Low, Higher Low, Lower High labels. All these are done dynamically, it means last HH/HL/LL/LH can change. if price continues to go up then HL can turn to LL or if price continues to go down then LH can turn to HH. This script can be used for different purposes such trend analysis, support/resistance levels, breakouts etc.

I tried to make many things optional:
You can set Periods for Zig Zags as you wish
You can set different colors for both Zig Zag Up/Down lines
You have option to show both Zig Zag , one of them or none them
You have option to show both HHLL, one of them or none them
You can set Zig Zag 1 line style as Dashed or Dotted
You can set Line Widths for Zig Zags

Some examples:





Enjoy!
Versionshinweise: Label colors changed by the trend as HH/HL shows the uptrend and LL/LH shows the downtrend.
"Text Color" option added for the text in labels.
Open-source Skript

Ganz im Sinne von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es verstehen und überprüfen können. Ein Hoch auf den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln. Sie können das Skript den Favoriten hinzufügen, um es auf dem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?
If you find my works useful, please consider a donation
BTC: 19qDW9AShZhBZsGuXcgRzam5Fbpc3EU8EV
ETH: 0x39c8552371b9b7f4e324197af460ba8bc8e18ef9

Kommentare

350 Coins
+2 Antworten
Great work as always. Is it possible to add percentage value to labels according to the previous movement? For example %61.8 or %127.
+13 Antworten
Oh, one more awesome publication from you, thanks :)
+8 Antworten
Great work! I personally would have preferred to color HH/HL green and LH/LL red as they indicate the trend, but generally I like it a lot! Thanks.
+5 Antworten
@wugamlo, you are welcome. you have option to set colors as you wish ;)
+2 Antworten
wugamlo LonesomeTheBlue
@LonesomeTheBlue, my pleasure - always enjoying your contributions :-)
Just so that you understand what I mean - currently the color of the labels is determined by the direction in statement " color = dir1 == 1 ? upcol1 : dncol1 ". This means that the Highs (HH/LH) always use the bullish color and the Lows (HL/LL) use the bearish color. In my analysis I see HH/HL as bullish (--> uptrend) and LH/LL as bearish (--> downtrend).

So by changing the above expression to " color = (hhlltxt == "HH" or hhlltxt == "HL") ? upcol1 : dncol1 ", it would be possible to easily identify uptrend by supsequent bullish colored labels and a downtrend by subsequent bearish colored labels.

But of course this is only personal preference.
+6 Antworten
@wugamlo, makes sense as HH/HL shows the uptrend and LL/LH shows the downtrend. gonna change it if I have time :)
+1 Antworten
wugamlo LonesomeTheBlue
@LonesomeTheBlue, wow - thats what I call fast reaction! Thanks a lot!
+1 Antworten
@wugamlo, you are welcome ;)
Antworten
wugamlo LonesomeTheBlue
@LonesomeTheBlue, Actually I have one more idea: Would it be possible to make it an option to use Closing Price instead of High/Low for the determination of the pivot points. I know there is always a discussion ongoing what is the correct way - but by giving this option, everyone can use it according to own preference :-)
Antworten
Startseite Aktien-Screener Forex-Screener Krypto-Screener Wirtschaftskalender Über Chartmerkmale Preise Einen Freund empfehlen Hausregeln Hilfe Center Webseite & Brokerlösungen Widgets Charting Lösungen Lightweight Charting Library Blog & News Twitter
Profil Profileinstellungen Konto und Abrechnung Angeworbene Freunde Coins Meine Support Tickets Hilfe Center Private Nachrichten Chat Abmelden