acatwithcharts

Compression MA (600 Max) [acatwithcharts]

Compression MA is an experimental indicator which modifies Mean Reversion MA with a twist: it instead tracks the most compressed period on a given timeframe as a target for eventual mean reversion. This is a twist on the logic for trading volatility mean reversions in that here we work from the assumption that a period of compression means that there's volatility overhead that should provide resistance to a breakout. The compression MA should therefore help define range-bound areas and help predict intermediate resistances.

This required some tweaking of Mean Reversion MA rather than just making a modification to enable more features on that script, but much of the logic and settings are similar. I've also added an option on this script to turn off tracking and just give the current most compressed period, if any, which creates an entirely different chart and is great for identifying and defining areas of sideways, strongly range-bound compression, which should be scalpable.

This version caps the maximum period length at 600, an empirically-chosen number based on some testing of Mean Reversion MA to try to avoid picking overly distant targets and which dramatically improves stability. In practice, it should be extraordinarily rare for compression MA to need to track something longer than 600, small TFs notwithstanding.





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:
General refinements ahead of formal release. Adds a separate function with a different color scheme for displaying the current longest overexpanded period.
Release Notes:
Minor visual change in how bands are handled where a period is not being tracked.
Release Notes:
Adds support for showing multiple sets of bands around target means.

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.