Connect zigzag segment to the previous low
- This topic has 6 replies, 4 voices, and was last updated 5 years ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
Similar topics:
Forums › ProRealTime English forum › ProBuilder support › Connect zigzag segment to the previous low
Tagged: drawsegment, zigzag
Hi everyone !
I’ve create a code which can detect the lows (on the screenshot they are represating by the arrows).
1 2 3 4 5 6 7 8 9 10 11 12 |
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:
1 2 3 4 5 6 7 8 9 10 |
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 |
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 😉
Find exclusive trading pro-tools on