setPlotType()

eSignal EFS 2

setPlotType()

Top  Previous  Next

 

setPlotType( plotType [, series] )

 

This function sets the plot type for a series value that is being returned to the chart for plotting.

 

Parameters

 

plotType

see Plot Types below

series

optional. an integer identifying the series offset

 

Plot Types

 

PLOTTYPE_LINE

plot a line

PLOTTYPE_DOT

plot a dotted line

PLOTTYPE_SQUAREWAVE

plot a stairstep line

PLOTTYPE_HISTOGRAM

plot a histogram

PLOTTYPE_FLATLINES

plot a line that does not connect values

PLOTTYPE_INSTANTCOLORLINE

plot a line that responds to color changes on the signal bar

 

Usage

 

function preMain() {

 

       setPriceStudy(true);

       setStudyTitle("Example Script");

       setCursorLabelName("EMA", 0);

       setDefaultBarFgColor( Color.blue, 0 );

       setShowTitleParameters( false );

 

       //set the plot type to a stair step

       setPlotType( PLOTTYPE_SQUAREWAVE, 0 );        

 

       //force this script to only update on each new bar

       setComputeOnClose();

 

}

 

setHistogramBase()