setComputeOnClose() |
Top Previous Next |
setComputeOnClose()
This function can only be called from within the preMain() function. When called, it will force the current EFS script to update only when each new bar arrives (as opposed to updating on each new tick).
Parameters
Usage
function preMain() {
setPriceStudy(true); setStudyTitle("Example Script"); setCursorLabelName("EMA", 0); setDefaultBarFgColor( Color.blue, 0 ); setShowTitleParameters( false );
//force this script to only update on each new bar setComputeOnClose();
}
|