Print(CurrentBar.ToString() + ": " + Time[0].ToString());
...
4: 11826
5: 11833
6: 11828
...
in addition, this generates errors in the ninjascript editor:
int time = ToTime(Time[1]);
i'm using NT7 release 4.
please advise how to get the timestamp of a bar. my current task is to identify the duration of a candle (when using a non-time-based bar type such as a Range bar).
cheers,
-e
Comment