Mean Reversion MA is an experimental indicator which tracks the furthest overexpanded period on a given timeframe as a target for eventual mean reversion. It currently allows for plotting BBands around that period and keeps track of the MA broken on the previous expansion and mean reversion. It is limited to SMA and regular STDEV in order to achieve useful precision without always timing out PineScript. Even still, it will sometimes time out and need to be refreshed by either switching TF/symbol or reapplying the indicator. This full version caps the maximum period length at 2000 and can take an especially long time to calculate with more frequent timeouts. Therefore, a version capped at 600 is also available which should load faster and be more stable, but may more frequently require looking at higher TFs due to capping out on extreme movements. The display color of the MA changes to orange when the period is maxed out as a warning that the maximum has been reached and that the true further overexpanded period is likely to be further out. A limitation of this tool is that it is difficult to track multiple overexpansions of size smaller than a previous one that has not yet reverted within the limitations of Pinescript. Some tools for filtering out large, long-term expansions include the ability to cap tracking at a certain number of bars and to set a lower maximum period length for tracking.