setPriceBarColor()

eSignal EFS 2

setPriceBarColor()

Top  Previous  Next

 

setPriceBarColor( color [, wickColor] [, bThin] [, bHollow] )

 

This function sets price bar color for the current bar. Used in conjunction with setColorPriceBars() and setDefaultPriceBarColor()

 

Parameters

 

color

the color to use

wickColor

optional. the color for the candle wick

bThin

optional. set thin wick (true or false)

bHollow

optional. set hollow candle (true or false)

 

Usage

 

function main() {

var myVar;

 

       ...

       ...

 

       if ( myVar > 0 ) {

               setPriceBarColor( Color.green );

       }

       else {

               setPriceBarColor( Color.red );

       }

 

       return( myVar );

 

}

 

setColorPriceBars()

setDefaultPriceBarColor()