How to get the Present Date

Forums ProRealTime foro Español Soporte ProBuilder How to get the Present Date

Viewing 3 posts - 1 through 3 (of 3 total)
  • #170128

    Hi there!

    This is my first post, so I hope that anybody can help me.

    I’m trying to find out the presentdate. I’ve tried everything (day, date, today, currentyear, time…) and I’m starting to worry if this simple thing is possible.

    this code:

    return BarIndex

    plots a simple line that goes from 0 (FIRST BAR) to X (total amount of bars, plotted on the PRESENT day). I want to get the opposite, a simple line that goes from X (total amount of bars, plotted on the FIRST BAR) to 0 (PRESENT DAY).

    So the problem is, considering that the scripts starts with the first bar, how to get the present day there?

    Thank you very much in advance!

    #170179

    Use IsLastBarUpdate in order to know the current bar is refreshing.

     

    #170227

    Use IsLastBarUpdate in order to know the current bar is refreshing.

    This doesnt help me because IsLastBarUpdate only executes on the last bar. I would like to know the present date when the first bar is been processed.

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login