setComputeOnClose()

ICE Data Services -

setComputeOnClose()
Previous  Top  Next

setComputeOnClose()

When called, this function 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.

This function does not take effect on any intervals that are external to the chart interval in which the formula is processing Also this function does not take effect on daily, weekly and monthly intervals when used in version 10.2 or earlier.



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();
}