Crazy optimization results using templates
5 replies
Massimo Scapini
1 year ago #289269
I am experiencing very serious issues trying to optimize strategies generated through templates.
For example:
- If I set veriables that are set through formulas, these are optimized also if I decide that these variables should not be configurable
- If I choose “Recommended parameters” and the template contains constants in formulas, these are all optimized even if they should not (e.g. if I set a breakout strategy where the entry price is set to (1 + A/100), also 1 and 100 are optimized and not only A !
- If I choose “Your own settings”, different parametes are created for the short and long side even if the “Symmetric Long and Short” flag is selected
See attached snapshots
This leads to completely unrealistic results and makes the usage of optimization in workflows senseless.
0
Massimo Scapini
1 year ago #289274
Tried to modify the template to avoid the issue #2 using a custom block instead of a random group but the template cannot be compiled
It fails with this message
23:26:26 Error while running project ‘Builder’. com.strategyquant.tradinglib.generator.GenerateException: Bad configuration – Cannot find block ‘CBlock_Offset’ in config! at com.strategyquant.tradinglib.generator.BlockSettingsConverter.getBlock(Unknown Source) at com.strategyquant.tradinglib.generator.BlockSettingsConverter.createConditionRep…
0
Massimo Scapini
1 year ago #289337
Can someone answer me ?
I cannot perform any reliable Optimisation of any type in workflows, since the optimized strategies have basically a complete different logic compared to the orginal ones!
I have to stop my whole SQX Operations for these issues and I do not know if and when I could resume them.
I believe that the issue can potentially affect many customers, that probaly do not even realize they have it.
It is really frustrating …
0
Massimo Scapini
1 year ago #289343
I found another big issue on Optimizer trying to work around on the above describeed isses (where I opened Bugs 11163 and 11165).
I tried to manually change the strategies created by the Builder swapping the values that are wrongly handled by the Optimizer with user variables added throuh Algowizard, in order to be able to select only these to be optimized using the option “Use your own settings” of the Optimizer.
But then a new mess is generated.
- If you use “manual” setting, the Optimizer creates “mirror variables” for the user variables that are selected in Algowizard, and substitutes them in the indicators and formulas. But then, the Optimizer at each step changes the values of the original variables only! Of course, the outcome is that all the optimizations have the same result !!!!!
<li style=”text-align: left;”>If you use “auto” setting, the optimizer seems to work because the results change at each step, but actually the behaviour is the same of “manual” + variables that you have unselected in the wizard bacause you DO NOT WANT to optimize are use for optimization.
This happens reagardless the optimization method you use (simple or WFM)
0
Tomas Matejka
1 year ago #289647
Massimo,
have you tried to disable some parameters in the optimizer? If you disable them they won’t be optimized in the process and you have total control above which ones. You always choose what parameters you will optimize and which remain intact. See the image attached what I mean
0
Massimo Scapini
1 year ago #289653
Tomas,
the manual option only works if you optimize one single strategy at the time, but it is completely uneffective in a workflow where you have to optimize all the strategies in a databank.
Moreover, it does not fix the issue of Optimizer creating different variables for the Long and Short sides even if the “Use your own settings”/“Symmetric for Long and Short” option are selected (btw the setting is grayed and cannot be changed), which applies not only to contants but also to all other strategy components (e.g. exits, periods, …). See bug 11163.
I tried several other workarounds but none of them is effective (see bugs 11165, 11225)
The conclusion for me is that Builder, Templates and Workflows, which are in my opinion the really unique features of SQX, are currently unusable together, since all created strategies cannot be optimized in a workflow.
1
Viewing 5 replies - 1 through 5 (of 5 total)