acatwithcharts

ACAT (14-600 Std-Res) [acatwithcharts]


(This is a reupload to help standardize the names in the invite-only indicators listing, which was otherwise doomed to be forever confusing.)


Adaptive Comprehensive Average Tracker is a 2 in 1 version of Mean Reversion MA and Compression MA. The slightly odd name is a backronym that spells "ACAT" - suffice it to say, I'm pretty proud of what these two indicators have developed into.

The best solution I've managed to find to the variable count limits in Pinescript is to split the indicator into two that cover different ranges. This version covers period lengths from 14-600 at the same resolution seen in the "600 Max" versions of Mean Reversion MA and Compression MA. I've then added a toggle-able feature to hide the lower indicator's plot while it's maxed out which makes them look roughly stitched together and has a nice added benefit that it require less work by the higher period script so it loads more quickly.

The hope is to replace several indicators that have periodic issues timing out with fewer, which should be substantially more convenient to use and on average mean dealing with fewer refreshes.




My volatility indicators are available by subscription in several packages through SharkCharts.live - and this is planned to be the first new one ready to add. I plan to release a video explaining how to use this indicator coinciding with launch, as there's a lot to talk about. Videos on my other indicators are currently hosted on DadShark's YouTube channel.

Current pricing and subscription details will be kept up-to-date on SharkCharts.live
Release Notes:
Updates attribution to SharkCharts.live in preparation for official release.
Release Notes:
Adds the ability to turn off resets of LOXP based on reversion and adds an option to use crossdown below a given WAVE-PM threshold. Reorganizes some menus.
Release Notes:
Changes the set of bands for tracking the previous longest overexpanded period to a customizable set of bands that can track current or previous longest overexpanded or compressed periods, or a fixed custom length, and at a multiplier factor for use in strategies that use a fractional period length for entries.
Release Notes:
Makes the MA of the custom MA an optional plot.
Release Notes:
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.
Release Notes:
Bugfix for custom band.
Release Notes:
Better bugfix to custom bands.
Release Notes:
Bug with custom bands should be fixed, finally - it was specific to fractional bands, involving what as far as I can tell is a niche undocumented change in v4 in how series persist if calculated in if statements, and wouldn't necessarily be obvious to anyone just using the 14-600 version.

I turned the summary panel off by default. There are enough issues with scripts timing out when you weave too many ACATs or have them across several charts in the same window that in the current implementation it didn't feel like it made sense to keep it turned on.
Release Notes:
Bugfix for previous TLCP labels.
Release Notes:
Menu text fix.
Release Notes:
Fixed bug in expansion resets on threshold.
Release Notes:
Added a "mode" menu. You can now use instances of ACAT directly as an ACAT Period Tracker instead. By subscriber request, I have also included a mode to plot stdev of tracked periods around 0.
Release Notes:
I'm making a round of updates to my scripts after testing some of the new Pinescript features and looking for ways to address loading issues that have arisen from changes over the past 6 months or so as to what thresholds cause scripts to fail on the back end.

My volatility-based indicators are available for sale at SharkCharts.live

Feel free to reach out to me with any questions; more information is available on the SharkCharts website and the SharkCharts discord discord.gg/YVpTeSK
Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact acatwithcharts for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Community Scripts.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?

Warning: please read before requesting access.