Skip to content

View Tools - Custom Colours

By Optuma Team · Updated 2020-04-02

All view tools (tools that display in their own window below the chart, such as Volume) now support custom colour schemes, with colours being set by user-defined scripts.

In the following example, the Volume tool displays a Red bar when it is above the 30-day Volume Average.

The script used to generate this result was:

VOL() > MA(VOL(), BARS=30, CALC=Close)

Once the view tool has been applied, go to the Properties panel on the left-hand side, and adjust the Colour Scheme option to Custom.

A new property called Custom Colour Scripts will be added.

Expand the new property and you will be able to select the default colour which displays when the bar does not meet the criteria for any of the scripts you have entered.

You will also be able to add the script criteria from this section by clicking the + icon:

Click on the icon to open the Script Manager, where you can select an existing criteria, or enter in one manually (must be a Boolean script with a True / False result).

Click Apply and the custom colour will update on the view tool automatically.

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.