How to get the Present Date

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #170128 quote
    prtdbdb
    Participant
    New

    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 quote
    Nicolas
    Keymaster
    Master

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

    #170227 quote
    prtdbdb
    Participant
    New

    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)
  • You must be logged in to reply to this topic.

How to get the Present Date


ProBuilder: Indicadores y Herramientas

New Reply
Author
author-avatar
prtdbdb @prtdbdb Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by prtdbdb
4 years, 10 months ago.

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 05/21/2021
Status: Active
Attachments: No files
Logo Logo
Loading...