setStudyMin()
Previous Top Next
setStudyMin( value )
This function is used to control the scaling of an indicator pane (e.g., when setPriceStudy(false) is being used).
Parameters
Usage
Previous Top Next
setStudyMin( value )
This function is used to control the scaling of an indicator pane (e.g., when setPriceStudy(false) is being used).
Parameters
value |
the minimum return value for scaling |
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 );
}