PureBytes Links
Trading Reference Links
|
> Can I not reference historical values on an array?
Yes, you can, even though the syntax is confusing because it uses
[] for array references AND historical references.
This code correctly references historical values on TS2k:
array: foo[10](0);
foo[1] = CurrentBar;
print("Bar = ",CurrentBar:1:0,
", foo[1] = ",foo[1]:1:0,
", foo[1][3] = ",foo[1][3]:1:0);
Gary
|