I made a causal, non repainting cycle MA from a non causal CPO indicator
CPO indicator is a cycle extractor that process past data in a window. so past data can't be used as is.
it only gives some information from the past
so the fix is to create a rolling window and only keep the last value