setDefaultBarThickness() |
Previous Top Next |
setDefaultBarThickness( thickness [, index] )
This function sets the default line thickness for a series value that is being returned to the chart for plotting. Generally called from within the preMain() function.
Parameters
thickness |
integer value for line thickness |
index |
optional. an integer identifying the return index from main() |
Usage
function preMain() {
setPriceStudy(true);
setStudyTitle("Example Script");
setCursorLabelName("EMA", 0);
setDefaultBarFgColor( Color.blue, 0 );
setDefaultBarBgColor( Color.yellow, 0 );
setDefaultBarStyle( PS_SOLID, 0 );
setDefaultBarThickness( 2, 0 );
setShowTitleParameters( false );
}
setBarThickness()