Even if I use a variabel that is referenced to data2 and this variabel is not used in any of the calculations in the code (an redundant variabel). The arrays give strange values. It looks like it is not possible to use (dynamic) arrays and references to data2 in the same code.
Example of redundant variabel that is not used for any calculation or what so ever.
Code: Select all
If date <> date[1] then begin
Yesterday_close_fake = close[1] of data2;
end;
Is it not possible to use arrays with references to data2?