Normally function definitions such as:
" vstochK = stochK(Length,3,3)"
are defined within the bInit (execute once) portion of a EFS routine and executed once per EFS invocation.
Once defined the values generated by the stochK() function are retrieved via the vstochK.getValue(-1) call.
Is it possible to alter the Length value within the EFS outside of the bInit section to pass different values to the stochK function. For example for one bar passing a 14 and another bar passing 21, etc?
When I place the function definition outside the bInit loop the EFS backtest takes a very long time and frequently runs out of memory or crashes eSignal.
Has anyone tried doing this?
thanks very much,
Glen
" vstochK = stochK(Length,3,3)"
are defined within the bInit (execute once) portion of a EFS routine and executed once per EFS invocation.
Once defined the values generated by the stochK() function are retrieved via the vstochK.getValue(-1) call.
Is it possible to alter the Length value within the EFS outside of the bInit section to pass different values to the stochK function. For example for one bar passing a 14 and another bar passing 21, etc?
When I place the function definition outside the bInit loop the EFS backtest takes a very long time and frequently runs out of memory or crashes eSignal.
Has anyone tried doing this?
thanks very much,
Glen
Comment