Disable "compiling performance results". Enable code saving when "compile" is pushed.
Author: gpwr9k95
Creation Date: 3/29/2018 4:53 AM
profile picture

gpwr9k95

#1
I wrote a script based on the strategy template, which screens stocks based on certain criteria and then prints the results in the debug window. However, sometimes, when I run the script on a large group of stocks, the script gets stuck on "compiling performance results", and I have to kill the program. Is there a way to disable the compilation step? I really don't care about it because my script is not conducting any trades.

Another useful feature: it would be nice if clicking on the compile button in the editor window saved the code. I got used to this feature in other programming environments and thought it was a standard feature. I lost several of my edits just because I forgot to enter CTRL-S prior to the compile and run of my script, and the script got stuck on that "compiling performance results".
profile picture

Eugene

#2
With a stock screener you're interested in Alerts only. You don't need no performance visualizers in principle. To ease the burden:

1. Close the screener
2. Uncheck performance visualizers in Wealth-Lab's Preferences
3. Open your screener
4. Workspace > Save Workspace
5. Enable performance visualizers back and OK

Now this saved workspace will launch your strategy without any visualizers activated for top performance - no more "Compiling performance results".

A couple more suggestions while I'm at it:

1. Profile your code to optimize its performance and get rid of bottlenecks. For example: Wealth-Lab strategy performance profiling
2. Make sure your CPU, RAM and SSD are adequate for the computing task.
3. Hit Escape (Esc) key to abort a running Strategy.

QUOTE:
Another useful feature: it would be nice if clicking on the compile button in the editor window saved the code.

Wealth-Lab is working as designed, so auto-save on compile isn't going to happen. At least until all those Open Issues from years before are approached, and then some.

Please develop a habit to strike Ctrl-S - this opens the door to Strategy versioning / comparison and performance snapshots: see Snapshots visualizer, part of MS123 Performance Visualizers.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).