Print("Time[0]: "+Time[0].ToString());
it prints the time stamp of every single bar on the chart.
When I use the code:
Print("Time[1]: "+Time[1].ToString());
or any other index number, I get the following error message in the output window:
"Error on calling 'OnBarUpdate' method for indicator 'TEHarmonics' on bar 0: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart."
What am I doing wrong, and why do I only get an output when using index 0?
Also, there are 258 bars on the chart.
Thanks for the help!
Comment