setBarBgColor()

eSignal EFS

setBarBgColor()

 

setBarBgColor( Color, [Series,] [YMin,] [YMax] )

 

  • Color:  A valid color definition or RGB value.
  • Series: The series to apply the background color to (optional)
  • YMin:  Paint background down to this price level (optional)
  • YMax: Paint background up to this price level (optional)

 

Sets the background color for the current bar.

 

Example:

 

//set background color to blue

setBarBgColor( Color.blue );

 

//set background color for first returned series to red. Only draw

//the background up to the 500 price level

setBarBgColor( Color.red, 0, null, 500 );

 

 

//set the background color for the second returned series to purple.

//Only color the background from the 10 price level up to the 50 price

//level.

setBarBgColor( Color.purple, 1, 10, 50 );

 

Colors