setComputeOnClose()

eSignal EFS 2

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).

 

Note: you can view/change the global compute-on-close setting from within the eSignal program. Click on Tools-->EFS-->Settings to pull up the Formula Engine Settings window.

 

Parameters

 

none

function takes no 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();

 

}