setStudyMax() |
Top Previous Next |
setStudyMax( value )
This function is used to control the scaling of an indicator pane (e.g., when setPriceStudy(false) is being used).
Parameters
Usage
function preMain() {
//we want this script to plot its results in a //separate indicator pane setPriceStudy(false);
setStudyTitle("Example Script");
setCursorLabelName("RSI", 0);
setDefaultBarFgColor( Color.blue, 0 );
setShowTitleParameters( false );
//here we will set the maximum and minimum values //for scaling purposes. setStudyMax( 100 ); setStudyMin( 0 );
}
|