On 06-20-2003 Jason posted the BressertNew.efs (attached). As it is now almost five years old, I'm wondering if there are ways to improve its efficiency (i.e. to reduce CPU loading by isolating and executing one-time-only calcs from needed-every-tick calcs).
In this efs, do the following variables need to calculated / defined only once, and should they therefore be put in a loop like below:
nBarState, vHigh, vLow, dClose, K, and K2?
if(bInit==false){
.... one time only calcs....
bInit=true;
}
Should the if statements to null check pds, slw, triggerlen, and emalen (lines 27 - 34) also be included in the above loop?
If there are places to improve this efs that one of the efs experts can do for me that would be fantastic, otherwise based on answers to the above, I'll give it a try myself.
Thanks
Shaeffer
In this efs, do the following variables need to calculated / defined only once, and should they therefore be put in a loop like below:
nBarState, vHigh, vLow, dClose, K, and K2?
if(bInit==false){
.... one time only calcs....
bInit=true;
}
Should the if statements to null check pds, slw, triggerlen, and emalen (lines 27 - 34) also be included in the above loop?
If there are places to improve this efs that one of the efs experts can do for me that would be fantastic, otherwise based on answers to the above, I'll give it a try myself.
Thanks
Shaeffer
Comment