Announcement

Collapse
No announcement yet.

rawtime with interval issue

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

  • rawtime with interval issue

    Hi,

    I am running an 08:00 to 18:00 dynamic time template. On a 60 min chart, my code calls the following:

    var rt0 = rawtime(0, inv("15"));

    I have also printed
    var rt1 = rawtime(-1, inv("15"));

    Both rt0 and rt1 return as null.

    If I use the same code with any time <= 15 min on the chart then the values returned are not null. It appears therefore that the rawtime call constructs a 15 min value from the interval currently used on the chart. This is very odd to me and I don't understand how rawtime works. I was under the impression that the rawtime calls above were accessing the 15 min chart of the symbol to get these rawtime values but it does not appear to be so.

    Can someone please help clarify this for me; i.e. why I am getting nulls for times greater than the interval in the rawtime call? Any help would be greatly appreciated. Thank you very much in advance.

    Regards,
    Jane
Working...
X