Pinescript v4 has arrived!
ACAT has been updated to use v4 and implements an extensive labeling system for LOXP, CLCP, and TLCP, as well as a summary table. By default, only the current period lengths are labeled, at the spots where those periods were triggered. An option exists to also display previous periods, fixed in place at the times they were triggered whenever they were reset.
A key feature of the labeling implementation – these are intended to weave reasonably well when using multiple period length ACAT scripts and the summary tables stack (it is important to have your indicators displayed in order of the stacking to use this). Finding a precise formula that works across all symbols and TFs has proven challenging but what I’ve come to should work well enough most of the time, and it only really matters when using the historical labels.
I think I’ve done pretty well squashing major bugs but this is all new tech for Pinescript so subscribers are bound to find plenty of oddities and oversights.
One additional minor quality of life improvement – you can now set a minimum period length to be displayed when using the custom plot, useful for avoiding plotting single-digit low periods when using fractions of tracked periods.