I’m hoping to expose and use the date values of the start and end of volatility swings. I’ve searched but it seems that almost everyone is using the price value of the swing.
I’m interested in the date values (to feed into a pseudo time-extension style indicator).
That works a treat,
However this :
BARDATE(V2) - BARDATE(V2, OFFSET=1)
gives me calendar days. Is there anyway to get the number of bars between the 2 signals?
I’ve played around with TimeSinceSignal and Acc, and tried including adding additional variables like close()>-0 to try to use the bar list not the swing list, but no luck.
Any advice?
Ah I just remembered a function called SWINGSTAT() which captures a lot of info, including the length in trading days. Current swing length in bars (trading days on a daily chart):