Hi everyone !
I would like to know if it’s possible to display a signal on the anterior candle ? And if it’s possible how can I do that ? 🙂
To illustrate this idea I have this example : I try to detect the bottom of a wave with zigzag. I use this code :
zz = zigzag[2](low)
base = zz[0]>zz[1]and zz[1]<zz[2]
return(base)
So, this code detect the bottom of the wave and display the signal a day after as you can see on the screenshot.
But I want the signal on the candle of the bottom of the wave (vertical line) :/ !
Thanks for your reply guy’s.
You will need to draw something at barindex -1.
zz = zigzag[2](low)
base = zz[0]>zz[1]and zz[1]<zz[2]
if base then
drawvline(barindex-1)
endif
return