Announcement

Collapse
No announcement yet.

bar time

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • bar time

    I'm using debugPrint to output content of variables as different conditions form on the chart and I want a reference to that bar. Using getCurrentBarIndex() provides the bar number which is fine until a new bar prints. The problem with BarIndex is that the value changes as new bars come in while the Formula Output window retains the original bar index value. And using New Date / getTime prints the same time on all the historical bars. So, is there a method to print the actual time(& date) of each historical bar (as can be seen in the cursor window)? Something like: debugPrintln(getBarTime(getBarIndex)).
Working...
X