setDefaultPriceBarColor() | preMain Functions |
This function sets the default price bar color. Used in conjunction with setColorPriceBars() and setPriceBarColor(). Generally called from within the preMain() function.Syntax
setDefaultPriceBarColor(color)
Parameters
Notes
Parameter: Description: Default: color the color to use
n/a
Starting with version 11 the most current realtime bar will not be colored if this function is called from main() in conjunction with setComputeOnClose().
Code Examples
function preMain() { setPriceStudy(true); setStudyTitle("Example Script"); setCursorLabelName("EMA", 0); setDefaultBarFgColor( Color.blue, 0 ); setDefaultBarBgColor( Color.yellow, 0 ); setColorPriceBars(true); setDefaultPriceBarColor( Color.black ); setShowTitleParameters( false );}
See Also
setPriceBarColor()
setColorPriceBars()