Adding strategy to Workspace doesn't preserve layout
Author: Panache
Creation Date: 7/15/2018 2:12 PM
profile picture

Panache

#1
I have a workspace which contains the strategies I want to run every day. I arrange them in a cascading order which makes it easier for me to use, with each strategy partially overlapping the previous strategy.

If I add a new strategy, modify the layout and then save the workspace, the layout is not the same when I reopen the workspace. Specifically, the most recently added strategy opens on top of the other strategies, even though it was partially covered by other strategies in the cascade when I saved the workspace.

If I go into the *.ws file and reorder the entries based on the first value in Bounds, the workspace opens as intended. Is there an easier way to do this?
profile picture

Eugene

#2
Who knows. You can try to experiment with reordering your chart windows before saving.
profile picture

Panache

#3
Thanks Eugene. I tried that initially.

After looking at the *.ws file, I believe when a new strategy is added and the workspace is saved, Wealth-Lab simply appends the information for the new strategy (including its location within the Wealth-Lab window) to the existing strategy information. When Wealth-Lab opens a workspace, I'm guessing it reads the *.ws file sequentially and opens each strategy in the saved location.

If that's all true, I didn't expect there would be a simple solution. I'll continue using my workaround.
profile picture

Eugene

#4
I've tried it out and you're right. The new windows always appear on top. Reordering the new entry succeeds by manually moving its section in the *.ws file to the right position. Clumsy but it works.
profile picture

Panache

#5
In case anyone wants to modify their *.ws file to change the order that the strategies open, the first two entries
CODE:
Please log in to see this code.

should not be moved and should always be at the beginning of the file.

The entry for each strategy begins with
CODE:
Please log in to see this code.

and ends with the blank line after
CODE:
Please log in to see this code.


Happy hacking!
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).