OPEN-SOURCE SCRIPT

Zigzag Array Experimental

10 885
This is experimental script for zigzag which uses type, method and array. Not recommend for actual usage, for pine script study maybe useful.

In this experiment, I use type as coded below. It seems have limitation as specially when push as array. As Trading View recommendation, pushing float and int into array especially for type not guarantee to work. I agree with that. Preferred to push array as line or label especially for types.

Pine Script®


I simulate the arrays as below.
Pine Script®


Here are some results.
ekran görüntüsü
ekran görüntüsü
ekran görüntüsü
ekran görüntüsü
ekran görüntüsü
ekran görüntüsü

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.