Hi,
Does AFL support dynamic variable creation?
My goal is to determine the standard deviation of one or more stocks. But I don't want to limit the time period to the number of variables that I have to write out in the formula. I'd like to take the number of periods back as a parameter and then create that number of variables to hold the value from x number of days.
As I write this, I realize that I might be over thinking it. I suppose I could take the number of periods back as a peramter and then loop through that number of periods totalling up the closing prices. Something like
For I = 1 to iPeriods
dTotal = dTotal + Close(I)
Next
Is that workable?
Thanks for any help!