Why are there no CurrentDay function?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #64904 quote
    juanj
    Participant
    Master

    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.

    #64912 quote
    verdi55
    Participant
    Veteran

    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.

    #64943 quote
    verdi55
    Participant
    Veteran

    Question @juanij : what is entirely reliable here ?

     

    hahaha

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Why are there no CurrentDay function?


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
juanj @juanj Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by verdi55
7 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 03/09/2018
Status: Active
Attachments: No files
Logo Logo
Loading...