Human
Member
I would like to change the formula used for an indicator at a certain point. Let's say I am using a moving average. That is the first indicator. I want to change the formula 19 days in the past from the current day. This would roll forward as time passes so the standard moving average would always end 20 days ago and the new formula would extend to the present bar. Visually, the past 19 days would be slightly different from the final shape we would see twenty days ago and before that. I understand how to shift the moving average back 20 days. That is the easy part. What I don't know is how to start the second indicator 19 days ago and extend to the current bar. The second formula would be similar so visually it would look like one seamless indicator with no break between the two formulas. Is this possible? Are there any examples of something like this? I have searched for this, but I might not know what terms to use in my search.