setShowTitleParameters()
Previous Top Next
setShowTitleParameters( boolean )
This function controls whether or not the current script parameter values will be displayed to the right of the study title on a chart.
Parameters
Usage
Previous Top Next
setShowTitleParameters( boolean )
This function controls whether or not the current script parameter values will be displayed to the right of the study title on a chart.
Parameters
boolean |
true or false |
Usage
function preMain() { //we want this script to plot its results in the //price pane setPriceStudy(true); setStudyTitle("Example Script"); //this script returns 3 values to be plotted on the chart. //use setCursorLabelName() to set a name for each return //value setCursorLabelName("EMA", 0); setCursorLabelName("SMA", 1); setCursorLabelName("WMA", 2); setDefaultBarFgColor(Color.blue, 0); setDefaultBarFgColor(Color.red, 1); setDefaultBarFgColor(Color.green, 2); //suppress the display of parameter values to the right //of the script title setShowTitleParameters(false); }