setColorPriceBars() |
Top Previous Next |
setColorPriceBars( boolean )
This function can only be called from within the preMain() function. Used in conjunction with setPriceBarColor() and setDefaultPriceBarColor() to activate the price bar coloring feature.
Parameters
Usage
function preMain() {
setPriceStudy(true); setStudyTitle("Example Script"); setCursorLabelName("EMA", 0); setDefaultBarFgColor( Color.blue, 0 ); setShowTitleParameters( false );
//activate the price bar coloring feature setColorPriceBars(true); setDefaultPriceBarColor( Color.lime );
//force this script to only update on each new bar setComputeOnClose();
}
|