Hi everyone !
I’ve create a code which can detect the lows (on the screenshot they are represating by the arrows).
zz = zigzag[2](low)
creux = zz[0]>zz[1]and zz[1]<zz[2]
b=zz[1]
if creux then
oldbar=barindex-1
DRAWARROWUP(oldbar, b-0.1)
DRAWSEGMENT(oldbar, b, oldbar[1], b[1])
endif
return
Now I’m trying to connect the last low to his previous one by a segment but as you can see it does no’t work :/ ! So i’ve made a mistake in the code but i can’t find where is the mistake …
Thanks for your help guy’s ! 🙂
There you go:
zz = zigzag[2](low)
creux = zz[0]>zz[1]and zz[1]<zz[2]
b=zz[1]
if creux then
oldbar=barindex-1
DRAWARROWUP(oldbar, b-0.1)
Price = low[1]
DRAWSEGMENT(oldbar, b, oldbar[1], Price[1])
endif
return
Could this way of using zigzag be used to plot Elliott Waves?
For sure, Elliott Waves are just segments. You only need to know where to start and where to end plotting one!
Could this way of using zigzag be used to plot Elliott Waves?
If you are interested in Elliott Waves follow this blog http://studyofcycles.blogspot.com/
Automatic plotting of Elliott Waves is meaningless 😉