Strategy Settings such as Date Range, Starting Capital, Position Size, and Strategy Parameters reset to a previous value after a restart, even though the strategy was saved with the new values. Why is that?
Rename
I guess we'll need more details for troubleshooting this.
Maybe you're confusing it with a Workspace?
For example, assume you Save a Workspace with Strategy "ABC" that has settings "X".
Then you save Strategy "ABC" with settings "Y".
When you recall the Workspace, you're still going to get "X", because those were the settings in the Workspace.
For example, assume you Save a Workspace with Strategy "ABC" that has settings "X".
Then you save Strategy "ABC" with settings "Y".
When you recall the Workspace, you're still going to get "X", because those were the settings in the Workspace.
>>Why is that?<<
Unknown, it's not happening in my experience.
Unknown, it's not happening in my experience.
QUOTE:
Maybe you're confusing it with a Workspace?
I often get tripped up by the way Workspace settings are or are not saved, so maybe there's something I don't understand. I thought Workspace saving would save settings of strategies in the Strategy Monitor (SM). I am testing this strategy standalone (outside of SM). Are you saying that if I change strategy settings for a standalone strategy, they will not be saved with "Save" but will be saved if I save the Workspace while that strategy is still open?
No, they should be saved.
QUOTE:
No, they should be saved.
I just re-read Cone's Post #2 and that doesn't seem to be what he is saying.
You said, "Are you saying that if I change strategy settings for a standalone strategy, they will not be saved with "Save"...
No, we're not saying that. They will be saved.
What I said is that saved Strategy Settings can be different than those that are saved with a Workspace.
No, we're not saying that. They will be saved.
What I said is that saved Strategy Settings can be different than those that are saved with a Workspace.
Got it
If I have a strategy open standalone and save current view default Workspace, then change the backtest timeframe and save the strategy, the next time WL starts up it will have the original settings for the strategy (such as timeframe) that were in effect when the Workspace was saved, not the ones when the file was last saved. So, it does appear that strategy settings for standalone strategies are saved with the Workspace even if they are later changed and saved with the file. Is that expected behavior?
Yes that's how it is intended to work.
Is there is list of all the strategy settings that are saved when a standalone strategy is saved within a Workspace? Or is it comprehensive?
Given how complex and evolving the product is, it's a bit impractical to keep all of those lists because they have to be kept up to date too.
They are as of now:
- Mode (Single Symbol or DataSet)
- Single Symbol
- DataSet
- Scale
- Data Range
- Benchmark
- Position Size
- Strategy Parameters
- Mode (Single Symbol or DataSet)
- Single Symbol
- DataSet
- Scale
- Data Range
- Benchmark
- Position Size
- Strategy Parameters
Thank you @Glitch! I never understood that the "Workspace" functionality worked quite this way. I have been using the Workspace feature simply for layout. It appears that the Workspace will set all these parameters when a strategy is opened, independent of how they these parameters are set in the saved source file.
I have to wrap my head around the best way to use this capability. If I understand correctly, I could run the same strategy with multiple different combinations of settings by selecting a different Workspace?
I have to wrap my head around the best way to use this capability. If I understand correctly, I could run the same strategy with multiple different combinations of settings by selecting a different Workspace?
Yes, that's possible!
Your Response
Post
Edit Post
Login is required