You've declared inputData as a single variable of type Double, not an array.
Also, you've declared Close_ in InitialiseDataArray but you then try to refer to it in test.
You can't do that because it's out of scope.
Another problem is that you've declared a variable called FD in the function called FD.
I'm not sure what you are doing with that variable, do you even need it.
I re-arranged the code a bit but it stops at Highest(CalculationPeriod_) which I assume you haven't written yet.
Anyway here it is.
Bookmarks