I have added an instrument to a chart in three separate timeframes: 5, 10 and 20 minute (the 5 min is Data1). However, the same value is being returned for Close Data1, Close Data2 and Close Data3. The following code returns the same value for all three:
Print(Close of Data(1), ", " , Close of Data(2), ", " , Close Data(3));