Moving Window
Posted: Fri Nov 22, 2013 6:48 am
Hello,
I have the following problem.
I need to calculate the following for a number of FX quotation series:
(Current Close - Lowest Low) / (Highest High - Lowest Low) * 100
This is done in a moving average window of 14 weeks. Then, this is smoothed by 4 week moving average.
How do I program this? In an easy way, using FOR NEXT function for example...
Thanks!
PD. I am attaching FX series. Thanks
I have the following problem.
I need to calculate the following for a number of FX quotation series:
(Current Close - Lowest Low) / (Highest High - Lowest Low) * 100
This is done in a moving average window of 14 weeks. Then, this is smoothed by 4 week moving average.
How do I program this? In an easy way, using FOR NEXT function for example...
Thanks!
PD. I am attaching FX series. Thanks