setPlotType()
setPlotType( plotType [, index] )
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 |
index |
optional. an integer identifying the return index from main() |
Plot Types
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(); }