Display indicators for future dates?

Hi Mathew,

Back in https://forum.optuma.com/topic/puetz-window/#post-58521 you mentioned that you had a beta version of Optuma that showed indicators working on future dates. You even attached a screenshot.

Is this feature available now, and hidden behind some sort of check box option? If not, is it still on your radar?

Thanks in advance

Dave M.

Hi David,

It may depend on the formula and what you are trying to achieve. Can you reply with an example?

Thanks for asking Darren,

An example would be flagging the release dates of US economic reports, a few days in advance. For example, the US CPI and unemployment reports are released on the first Friday of each month, so it’s simple enough to create a script:

DAYOFWEEK()==6 and DAYNUM()<=7

to detect them. Wrapping that script in a ShowBar will let me highlight all those dates on a chart, but only for those dates in the past.
I’d like to be able to highlight those dates in the near future (say, a week in advance). I’m aware I could do something like

v1=DAYOFWEEK()==6 and DAYNUM()<=7;
v1 or OFFSET(v1, OFFSET=-5)

to achieve that, but that’s only for this exact use case.

Far better would be to provide an option to display highlights like this into the future on the bar chart, and optionally be able to say “only show indicators for a month into the future” or something of that nature.

To show what I’m talking about, I’ve attached a screenshot from TradingView. If you look at the bottom of this screenshot, there’s little purple arrows - they’re highlighting the dates that contracts rollover. You can see that it’s flagging a contract rollover coming up in mid-June: that’s the type of thing I’d like to get into my Optuma charts.

Thanks again for whatever suggestions you can offer Screenshot 2023-05-22 at 10.05.26 am

Thanks David. Show Bars, Show Views, and Show Plots will only work when there is a bar on the screen to reference, so that doesn’t allow dates in the future.

It’s only possible to script astro events in the future, as per the Puetz Window example. The only option I can think of would be to manually set a Time Alert for each date required, but that may not be feasible.

Thanks Darren