setPriceStudy()

eSignal EFS 2

setPriceStudy()

Top  Previous  Next

 

setPriceStudy( boolean )

 

This function controls where the output of a script will be displayed. If setPriceStudy(true) is used, then the output of the script will be plotted in the price pane of the chart. If setPriceStudy(false) is used, then the output of the script will be displayed in a separate indicator pane.

 

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 );

 

       setShowTitleParameters( false );

 

 

}