I have run into an issue with an EFS I recently created.
The problem is that the EFS is causing my computer and/or eSignal to freeze. Initially, the EFS was causing my computers CPU to run at 100% and ultimately pin there until a restart (during busy times of course). I recently upgraded to a very powerful computer (Quat Core Extreme 3.0...2GB of RAM) and the result is slightly different. The processor(s) never go above about, say, 25%, but eSignal now just freezes as things begin to get busy. I also need to restart. Even after eSignal freezes, the processor(s) are not running that hard. Presently, my new computer only has 1 screen as I run my tests on the EFS.
The EFS I have created is complex so I know that is the first issue. A little background on the EFS:
- It pulls up 5 other EFS’s using efsExternal().
- 4 of the EFS’s it pulls were created by me, the other is MESA.
- It has code for both back testing and automated trading within the EFS.
- It uses getHour(0) and = getMinute(0). I know this is processor intensive.
I have searched the forums in detail. I have found quite a bit about the processor being pinned at 100%, but this do not appear to be my problem on my new computer. I am confident that the problem is my EFS is simply inefficient (I.e. calling getMinute()…). I suspect, if I knew how to repackage things a bit more efficiently, it would solve my problem.
What I could use help with is if anyone could look at the code and suggest how I can move things around to create efficiency.
I have attached the EFS (MESA_Reversal v5.1.1) to this post.
Regards,
zMendel
The problem is that the EFS is causing my computer and/or eSignal to freeze. Initially, the EFS was causing my computers CPU to run at 100% and ultimately pin there until a restart (during busy times of course). I recently upgraded to a very powerful computer (Quat Core Extreme 3.0...2GB of RAM) and the result is slightly different. The processor(s) never go above about, say, 25%, but eSignal now just freezes as things begin to get busy. I also need to restart. Even after eSignal freezes, the processor(s) are not running that hard. Presently, my new computer only has 1 screen as I run my tests on the EFS.
The EFS I have created is complex so I know that is the first issue. A little background on the EFS:
- It pulls up 5 other EFS’s using efsExternal().
- 4 of the EFS’s it pulls were created by me, the other is MESA.
- It has code for both back testing and automated trading within the EFS.
- It uses getHour(0) and = getMinute(0). I know this is processor intensive.
I have searched the forums in detail. I have found quite a bit about the processor being pinned at 100%, but this do not appear to be my problem on my new computer. I am confident that the problem is my EFS is simply inefficient (I.e. calling getMinute()…). I suspect, if I knew how to repackage things a bit more efficiently, it would solve my problem.
What I could use help with is if anyone could look at the code and suggest how I can move things around to create efficiency.
I have attached the EFS (MESA_Reversal v5.1.1) to this post.
Regards,
zMendel
Comment