The Show View tool displays the results of a scripting formula in a panel below the chart in the form of a histogram or plotted line (just like an RSI, Stochastic, or Volume tool). To learn more about the Optuma Scripting Language please see these online tutorials:
This example shows the percentage difference between the closing price and 50 period moving average:
MA50 = MA(BARS=50, CALC=Close);
((CLOSE() - MA50) / MA50) * 100
To add a Show View to your chart, select the tool from the Price tool group, and click on the chart to add the tool. Optuma will then draw the Show View on your chart using the formula provided.
Saving the Script as an Indicator
It’s possible to save the script as an indicator and add it to your toolbox. In the Script Editor window tick the Use as an Indicator box to be applied to a New Tool View.
You can then apply the tool from your toolbox and change the properties (colours, line width, etc) and Save Settings as Default under Actions, or add it to your toolbar as a custom button.
Actions & Properties
Add to Toolbar: Click this action to add the selected Show View formula to your custom toolbar.
Apply to All: This option expands to display the following:
- Current Chart - If you have more than one occurrence of the tool applied to your chart, selecting this option will apply the properties of the current selection to the other tools.
- Current Page - If you have more than one chart on the current page and the Show View is applied on each, then this option will transfer the current selected property settings to each tool.
- Current Workbook - For each chart that has the Show View applied, this option will transfer the selected tool’s property settings to each tool on every chart in your workbook.
Copy Tool: Allows you to copy the selected Show View formula which can then be pasted onto a different chart window.
Move to Back: This option allows the selected item to be positioned behind the chart.
Move to Front: This option allows the selected item to be positioned in front of the chart.
Restore Default Settings: Click this action if you have adjusted the default settings of the Show View tool, and wish to return to the standard properties originally installed with Optuma.
Save Settings as Default: If you have adjusted any of the Properties (colour, for example) you can save the adjustments as your new default setting. Each time the Show View tool is applied to a chart it will display using the new settings.
Delete: Delete the Show View tool from the chart.
Tool Name: Allows you to adjust the name of the tool, as it is displayed in the Structure Panel.
Formula: This provides access to the Script Editor, here you can create the formula that will control how the Show View tool will display on the chart.
Use Start Date: Selecting this option will allow a nominated start date to be used for the Show Plot tool.
Plot Style: Allows you to change how the tool is displayed on your chart. There are 6 options available: Line, Dot, Histogram, Step, Shaded, Shaded Step.
Line Style: The Line Style property allows you to adjust the type of the line displayed. There are 8 options available: Solid, Dots, Dash, Dash Dots, Long Dash, Long Dash Dot, Long Dash Dot Dot, Stippled.
Line Width: Allows you to adjust the width of the line. Moving the slider bar to the right increases the thickness of the line.
Colour Scheme: Allows you to select the colour options of the line from the following: Single Colour, Copy Colours from Price Chart, Positive/Negative, and Custom. Custom allows you to script the colour scheme.
Line Colour: Allows you to select the colour of the line. Clicking on the drop-down arrow will display a colour swatch. Locate the desired colour and left-click it once to select it.
Fill Colour: When the Plot Style is changed to Shaded you are then able to alter the Fill Colour for the Show View tool.
Fill Transparency: When the Plot Style is changed to Shaded, you then are able to adjust the shading transparency. Moving the slider to the left will increase the transparency of the tool.
Offset: Moves the tool forward or backwards in time. The offset is measured in bars, so a value of 2 will push the tool forward 2 bars and -2 will move the tool back 2 bars.
Ignore Outliers: If a script returns a result where there are some spikes which are valid, but skew the view of the majority of bars, ticking this option will cause the tools auto-scale to ignore the outlier bars. When this option is enabled, if a bar is being cut off, it will show with a gap near the top of the bar, to indicate it is being cropped.
This option is best used with the display type “Histogram”.
Tool Transparency: Use this slider bar to adjust the transparency of the tool. Moving the slider to the left will increase the transparency of the tool.
Visible: Un-tick this checkbox to hide the tool from the chart.
Show In Price Scale: When selected, the plot value will be displayed in the Price Scale.
Below are examples of formulas that can be used with the Show View tool:
MA(BARS=50, CALC=Close) - MA(BARS=20, CALC=Close)
Plots the difference between a 50 period MA and a 20 period MA
Calculates the weekly RSI(10) shown here in green, which has been dragged over the daily RSI:
MA(BARS=13, CALC=Close, STYLE=Exponential) > MA(BARS=34, CALC=Close, STYLE=Exponential)
A true/false condition showing where the 13 period exponential MA (blue line) is above the 34 period EMA. When a condition is true it gets assigned a value of 1, and zero if false.
Click and drag the green Show View area over the price chart to highlight the true conditions on the chart itself, changing the tool transparency property as required.