Today function in V11.1

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #109362 quote
    Pinny
    Participant
    Junior

    Hi All

    One of my favorite indicators – WyckoffWave – stopped working in V11.1

    I traced the root cause to the function Today – in V10.3 this function returned the current date, in V11.1 it seems to return the current bar date.Anyone else noticed this?

    I used Today to make sure calculations are made only on the last bar in the timeframe and now I lost this functionality

    #109473 quote
    Nicolas
    Keymaster
    Master

    The TODAY instruction still returns the today date in YYYYMMDD format with version 11. What is the returned value you have please? Try this code:

    RETURN today
    #109509 quote
    Pinny
    Participant
    Junior

    Just did, it gives the correct value for each bar. My problem is what it returns in “non trading” days where there’s no bar on the chart.

    I coded a WyckoffVolume Wave “indicator”, which I’ll be happy to share once I solve this problem, and in order to keep the calculation time short I want it to operate only once – at the time: Today. Thats why I need to function

    Thanks

    #109513 quote
    Nicolas
    Keymaster
    Master

    I can confirm now that the TODAY instruction has changed in version 11, it is not a bug. It returns now the today date of when the code is read, and not the actual (real time) date anymore, as I explained here: https://www.prorealcode.com/topic/identification-of-the-last-bar-on-a-chart-in-prorealtime-v11/#post-109485

    #109555 quote
    Pinny
    Participant
    Junior

    OK

    Thanks Nicolas

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

Today function in V11.1


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Pinny @pinny Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/05/2019
Status: Active
Attachments: No files
Logo Logo
Loading...