Forum on trading, automated trading systems and testing trading strategies
Please EDIT your post and use the SRC button when you post code.
1° No idea, you need to provide more code, and code that compiles, not pseudo code.
2° Yes an array. PriceDataTable is an array I suppose, PriceDataTable is not an array.
are you sure you defined
ArrayMaximum(PriceDataTable, 0, WHOLE_ARRAY);
For the first part, from the few lines of code you disclosed, nobody can answer you what is the trouble with your code
If you don't want to post the entire code, almost sure that you will be left to find the error alone
Why ? There is no why...it's how it's designed by the language developers.
Please show your code if you need coding help.