Why are there no CurrentDay function?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #64904 quote
    juanjjuanj
    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
    verdi55verdi55
    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
    verdi55verdi55
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 verdi55verdi55
8 years, 6 months ago.

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