sherwind

ZigZag HiLo

Dilihat 12385
790
Skrip open-source

Sejalan dengan semangat TradingView, penulis skrip ini telah mempublikasikannya secara open-source, sehingga para trader dapat memahami dan memverifikasinya. Salut untuk sang penulis! Anda dapat menggunakannya secara gratis, tetapi penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib. Anda dapat memfavoritkannya untuk dapat menggunakannya didalam sebuah chart.

Inggin menggunakan skrip ini pada chart?

Komentar

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 Jawab
ronanus43 ryany1819
@ryany1819, Thanks
Jawab
does this repaint?
+3 Jawab
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
Jawab
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.
Jawab
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
Jawab
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
Jawab
sherwind asikoge
Hi @asikoge, it sounds like a copy-pasting issue. Try adding the script to favorites as described at https://blog.tradingview.com/en/importing-custom-indicators-in-tradingview-charts-video-265/ Hope that helps.
+2 Jawab