setHistogramBase()

ICE Data Services -

setHistogramBase()


setHistogramBase( value [, index] )

Sets the base of a histogram plot to this value. Used in conjunction with setPlotType( PLOTTYPE_HISTOGRAM ).

Parameters

value
the value to use as the histogram base
index
optional. an integer identifying the return index from main()


Usage
 
function preMain() {

   setPriceStudy(false);
   setStudyTitle("Example Script");
   setCursorLabelName("RSI", 0);
   setDefaultBarFgColor( Color.blue, 0 );
   setDefaultBarBgColor( Color.yellow, 0 );
   setDefaultBarStyle( PS_SOLID, 0 );
   setDefaultBarThickness( 2, 0 );

   setPlotType( PLOTTYPE_HISTOGRAM, 0 );
   setHistogramBase( 50 );

   setShowTitleParameters( false );

}