setDefaultBarBgColor()

eSignal EFS 2

setDefaultBarBgColor()

Top  Previous  Next

 

setDefaultBarBgColor( color [, series] [, yMin] [, yMax] )

 

This function sets the default background color for a series value that is being returned to the chart for plotting. Generally called from within the preMain() function.

 

Parameters

 

color

the color to use

series

optional. an integer identifying the series offset

yMin

optional. paint background down to this yvalue

yMax

optional. paint background up to this yvalue

 

Usage

 

function preMain() {

 

       setPriceStudy(true);

       setStudyTitle("Example Script");

       setCursorLabelName("EMA", 0);

       setDefaultBarFgColor( Color.blue, 0 );

       setDefaultBarBgColor( Color.yellow, 0 );

       setShowTitleParameters( false );

 

 

}

 

setBarBgColor()