setBarFgColor()

eSignal EFS 2

setBarFgColor()

Top  Previous  Next

 

setBarFgColor( color [, series] )

 

This function sets the foreground color for a series value that is being returned to the chart for plotting.

 

Parameters

 

color

the color to use

series

optional. an integer identifying the series offset

 

Usage

 

function main() {

var myVar;

 

       ...

       ...

 

       if ( myVar > 0 ) {

               setBarFgColor( Color.green, 0 );

       }

       else {

               setBarFgColor( Color.red, 0 );

       }

 

       return( myVar );

 

}

 

setDefaultBarFgColor()