TradingView
RicardoSantos
23 พฤศจิกา 2021 เวลา 10 นาฬิกา 1 นาที

FunctionZigZagMultipleMethods 

Walmart Inc.NYSE

คำอธิบาย

Library "FunctionZigZagMultipleMethods"
ZigZag Multiple Methods.

method(idx) Helper methods enumeration.
  Parameters:
    idx: int, index of method, range 0 to 4.
  Returns: string

function(method, value_x, value_y) Multiple method ZigZag.
  Parameters:
    method: string, default='(MANUAL) Percent price move over X * Y', method for zigzag.
    value_x: float, x value in method.
    value_y: float, y value in method.
  Returns: tuple with:
zigzag float
direction
reverse_line float
realtimeofpivot int
ความคิดเห็น
kakola
How are we supposed to be plotting this?



It's misaligned.
haiprodt3
Fix ad
kakola
We now have 3 ZigZag libraries, very good.
Now we should use the stopwatch to benchmark and compare their speeds.
BorC
how to use "ZZ Percent price move over atr(X)"
RicardoSantos
@BorC, X is the length of average true range required to reverse the zigzag
BorC
@RicardoSantos, How to use it?I only call out the bottom part, the high and low bits above are not displayed
RicardoSantos
@BorC,
import RicardoSantos/FunctionZigZagMultipleMethods/1 as zigzag length = input.int(10) multiplier = input.float(1.0) <zz, _, _, _> = zigzag.function(zigzag.method(1), length, multiplier) plot(zz)

replace <> with square brackets [ ]
BorC
@RicardoSantos, cannot copile script
Aniruddh31
@RicardoSantos, Still not getting all lines.
Aniruddh31
@BorC, yes same issue facing. @RicardoSantos
เพิ่มเติม