INVITE-ONLY SCRIPT
Updated

Double centered moving averages v1

908
This indicator is a double centered moving average!
The missing periods have been reconstructed with a very complex approximation and projection technique!
The hatched areas are approximations of the missing periods projected into the future.
It is possible to set the centering of the averages through the variable "Approximation Lenght" and the ratio between the parent average and the underlying in "Period Partition".

Practical example of setting:
"Approximation Lenght" equal to 2 means that the centering will be of half a period
"Period Partition" gives me the possibility to set the second average equal to half the main average if we insert 2 in the variable; equal to the third part if we insert 3 and so on ......

//By default we will have a main period at 256 and a shorter one at 128 (period partition 2), with centering equal to half a period (approximation length 2); if the average is shorter than 64 then I put 4 in the period partition.//

This is a great tool for cyclical analysis.
It is not possible, due to the pinescript v4 language limit, to set the average under 50 periods and over 670 periods.

For any bugs contact the creators
Release Notes
The new settings offer a greater range of use, from a minimum of 10 periods to a maximum of 1340
Release Notes
Update to version 5

Projection stabilization function
Release Notes
Automatic stabilization system
Improved user experience
Update version 6

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.