- ago
Hi, I was testing the AdaptiveRSI strategy today and I ran the optimizer to see what would happen. I took the results from the optimizer and modified the default values of two parameters manually. Then i ran it again and it did not change the value of the parameters, they were still at the original values. I added a WriteToDebugLog just to confirm my suspicion and confirmed. Then i saved the file and tried again. same result. Then i closed the strategy and reopened it and ran and it used the correct values that i had changed. Is this expected behavior?

1
219
Solved
5 Replies

Reply

Bookmark

Sort
- ago
#1
QUOTE:
I closed the strategy and reopened it and ran, and it used the correct values that I had changed. Is this expected behavior?

Yes it is, and it's by design. I still need to read the WL docs to figure out the best way to use this behavior. One of the choices in the pull-down menu let's you modify the code to the optimizer new parameters. But whether the strategy uses those coded values depends on whether the Use Preferred Values checkbox is checked or not.
1
Cone8
 ( 2.67% )
- ago
#2
You choose the default values and can set them:
1. by clicking "Save these Parameters as Strategy's Defaults" in the Strategy Settings, or,
2. after an Optimization by right clicking the result row and choosing:

2
Best Answer
- ago
#3
Thanks Cone, it works and updates the value and when i run it uses the correct value. I still don't understand why changing it manually does not give the correct result unless i save, exit and open again.
0
Glitch8
 ( 6.11% )
- ago
#4
Once you run a strategy, the parameter values you ran it with are set in the Strategy Parameter sliders in the Strategy Settings tab of the Strategy window. Those are the parameter values that will be used whenever you run the Strategy.

Even though you changed the DEFAULT values in code, that doesn't change the parameter slider values in the Settings tab.
2
- ago
#5
Thanks for the explanation.
0

Reply

Bookmark

Sort