So in PRT there are a CurrentYear, CurrentMonth, CurrentWeek, CurrentHour and CurrentMinute function.
Yet no CurrentDay function???
I have found a workaround by checking currentdayofweek against dayofweek but that is not entirely reliable.
Just take the command “Day” instead. I think the only difference between the “current” time commands and the general commands such as
“CurrentMinute”
or
“minute”
is that “minute” can be combined with parentheses, like
“minute[2]” ,
and so can give time information on past bars.
“CurrentMinute”, however, only gives the current minute, no time information on other bars.
Question @juanij : what is entirely reliable here ?
hahaha