Posted By: AndrewAMD
Use any DATE as "offset" input for time functions - 07/21/19 21:14
jcl,
There are several time and calendar functions, here:
https://manual.zorro-project.com/month
As an input, the user can currently supply offset=NOW, or any given bar offset.
It would be nice if any arbitrary date can be used as an input as well.
It can be as simple as this:
New function: void setThisDate(var Date); // This sets the Date referenced by offset=THISDATE
Now you use the newly defined offset=THISDATE to use any of these date functions with any date.
Thanks,
Andrew
There are several time and calendar functions, here:
https:/
As an input, the user can currently supply offset=NOW, or any given bar offset.
It would be nice if any arbitrary date can be used as an input as well.
It can be as simple as this:
New function: void setThisDate(var Date); // This sets the Date referenced by offset=THISDATE
Now you use the newly defined offset=THISDATE to use any of these date functions with any date.
Thanks,
Andrew