by fortcentral » Tue May 05, 2020 5:36 am
Dear Apprentice,
Further to my "logic description" yesterday, which was very basic, please see the following clarifications. The plot of the "1/2 period shift" will require some type of interpolation to estimate the shifted curve position. I hope the following description and picture makes the idea for the shift clearer.
Whole period shifts either forward or backward in time are relatively easy as per the current functionality of the indicator. This is the best outcome for most shifted envelopes. However under certain circumstances, 1/2 period shifts are recommended and hence the request for this additional functionality.
For half-period (0.5) shifts in time, you may be able to use a 2-period SMA of the "Moving Average Calculation" shifted by the next-whole-number up from the "input half-period", i.e. if "-1.5" period shift is required then a 2-period SMA of the moving average (or average of the last two moving-average values), each shifted by -2.0 periods in time.
Please see worked example in attached picture.
Regards,
Fortcentral
- Attachments
-