Skip to content

HIDDEN() Function

By Optuma Team · Updated 2020-07-14

The HIDDEN() function, in conjunction with the IF() function allows you to hide a plot until certain criteria are met.

For example, if a tool has been setup to plot from a specific date via a Points() script. Before the HIDDEN() function was available you would need to use scripts where the plot was zero until the selected date:

v=Points().Point1.DateTime;
plot1 = If(BARDATE() > v, HIGHESTHIGH(), 0);

The resulting plot on the chart would look like this:

Ex4

By changing the 0 in the above script to HIDDEN() we can remove the plots zero values and only show the line from the selected date forward.

V=Points().Point1.DateTime;
V1 = If(BARDATE() > v, HIGHESTHIGH(), HIDDEN());
V1

With the updated script the chart now displays the following:

Ex5

Choose which categories of cookies you allow. Strictly-necessary cookies are always on. You can change this any time via the "Cookie Settings" link in the footer.

  • Functional

    Remember preferences like dismissed banners and your dark-mode choice.

  • Analytics

    Help us understand how the site is used so we can improve it.

  • Marketing

    Measure our advertising and help us reach people who may be interested in Optuma.