ZigZag HiLo

צפיות ‎12327‎
סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר סקריפט זה פרסם אותו עם קוד פתוח, כך שסוחרים יוכלו להבין ולאמת זאת. הידד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום הנו בכפוף ל כללי הבית . אתה יכול להגדירו כמועדף ולהשתמש בו בגרף.

רוצה להשתמש בסקריפ זה בגרף?


Pine Script 4 complains line 36: zigzag = na with this error: "Value with NA type cannot be assigned to a variable that was defined without type keyword".
Figured out to modify it to this:

36| float zigzag = na

to get it passed.
+11 השב
ronanus43 ryany1819
@ryany1819, Thanks
does this repaint?
+3 השב
Hello @sherwind,
Thank you so much for the wonderful work. Had been searching for such a indicator for long time
Just one request, is it possible show the levels of the Swing High Swing Low
Regards and Stay Blessed
Hi @sherwind
Firstly, thank you so much for your great work, because based on your script I've made my own indicator.
Is it possible to change something in your script do draw current trend line? I've tried to use bartstate.isrealtime but it doesn't work like I want.
Did you intend to reproduce or emulate the built in zigzag indicator?
Nice initiative but your script does not work when I compare both on the same chart, and peak/trough are odd
Hi this is great, However when I ran the code there was an error compiling "Script could not be translated from: |B|trend := na(trend", I shall be please if you kindly tell me how this could be solved please
sherwind asikoge
Hi @asikoge, it sounds like a copy-pasting issue. Try adding the script to favorites as described at Hope that helps.
+2 השב