setDefaultBarStyle() |
Previous Top Next |
setDefaultBarStyle( style [, index] )
This function sets the default line style for a series value that is being returned to the chart for plotting. Generally called from within preMain()
Parameters
style |
see Pen Styles below |
index |
optional. an integer identifying the return index from main() |
Pen Styles
PS_SOLID |
draw a solid line |
PS_DOT |
draw a dotted line |
PS_DASH |
draw a dashed line |
PS_DASHDOT |
draw a dash-dot line |
PS_DASHDOTDOT |
draw a dash-dot-dot line |
Usage
function preMain() {
setPriceStudy(true);
setStudyTitle("Example Script");
setCursorLabelName("EMA", 0);
setDefaultBarFgColor( Color.blue, 0 );
setDefaultBarBgColor( Color.yellow, 0 );
setDefaultBarStyle( PS_SOLID, 0 );
setShowTitleParameters( false );
}
setBarStyle()