setDefaultBarStyle()

eSignal EFS 2

setDefaultBarStyle()

Top  Previous  Next

 

setDefaultBarStyle( style [, series] )

 

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

series

optional. an integer identifying the series offset

 

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()