Problem with Random Values when using randomized parameters

Something is cause the Randomized Values to fail when using both a function (i.e. Abs()) and a randomized parameter with "default" settings. 



It works fine when the Randomized parameters are configured, or when the function (i.e. Abs()) is omitted.



When the Strategy Template is loaded into Builder, this error is generated:


22:12:46 Strategy  0.0Strategy  0.0 - Error: java.lang.NullPointerException
at com.strategyquant.tradinglib.generator.StrategyGenerator.randomGenerateParameter(Unknown Source)
at com.strategyquant.tradinglib.generator.StrategyGenerator.findAndReplaceRandomParameters(Unknown Source)
at com.strategyquant.tradinglib.generator.StrategyGenerator.findAndReplaceRandomParameters(Unknown Source)
at com.strategyquant.tradinglib.generator.StrategyGenerator.findAndReplaceRandomParameters(Unknown Source)
at com.strategyquant.tradinglib.genera finished in 0.01 s.







Attachments
Test2.sqx
(3.36 KiB)
  • Votes 0
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

RH
#1

rhartstein

11.01.2021 05:29

Task created

MF
#2

Mark Fric

08.02.2021 10:35

Status changed from New to Waiting for information

it works for me now, so it seems whatever was causing it was already fixed. Have you tried it in Dev 1 build?
MF
#3

Mark Fric

11.02.2021 10:47

Status changed from Waiting for information to Fixed


Votes: 0

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please