[B136 Dev1] Optimizer: class com.strategyquant.tradinglib.SwapMethod cannot be cast to class com.strategyquant.tradinglib.CommissionsMethod

I am trying to optimize a strategy from build 135 that (of course) didnĀ“t use any swap. Loading the strategy to the optimizer and then just trying to optimize even one variable always fails with:


23:18:14 class com.strategyquant.tradinglib.SwapMethod cannot be cast to class com.strategyquant.tradinglib.CommissionsMethod (com.strategyquant.tradinglib.SwapMethod and com.strategyquant.tradinglib.CommissionsMethod are in unnamed module of loader com.strategyquant.launcher.EmbeddedClassLoader @1dd92fe2) 23:18:14 Brute Force method 23:18:04 Testing original parameters 23:18:04 Testing original strategy 23:18:04 Running simple optimization on Strategy 2.57.2397


I didn't set any swap, it says "No swap" in the Test Parameters (see screenshot). The same error appears if enabling Swap. This happens with any strategy I am trying to optimize.



Attachments
Untitled.png
(268.08 KiB)
  • Votes +8
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

g
#1

geektrader

14.04.2022 23:29

Task created

b
#2

bentra

14.04.2022 23:32
Voted for this task.
E
#3

Emmanuel

15.04.2022 15:14
Voted for this task.
JJ
#4

jjsb41

15.04.2022 16:22
Voted for this task.
g
#5

geektrader

15.04.2022 17:52
Voted for this task.
IN
#6

altenburg90

18.04.2022 02:49
Voted for this task.
Cc
#7

Cyber

08.05.2022 05:10
Voted for this task.
BP
#8

b10

15.05.2022 01:27
Voted for this task.
KB
#9

kbtech

22.05.2022 00:56
Voted for this task.

Votes: +8

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please