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