Hi,
I'm calculating a SMA over a daily period but I now need to find the corresponding timeseries object corresponding with the SMA I'm calculating.
For instance, if I'm calculating an SMA over a 5 day period. How do I get the dates of the previous 5 days over which the SMA is calculated. To my knowledge, get_datetime() just gives the date at which the algo is running.
Any help, is appreciated.
Andrew