Builder error: evaluated candidate is null - exception

Steps to recreate the error:

1. I created a template (see attached sqx file) with Algowizard with no stop loss/target profit, only exit after "n" number of bars, using price crossing upper Keltner and 1 more random condition
2. In Builder I have an unusual fitness criteria which is only Win %. Also multiple open trades are allowed.
3. After a min or 2 of running Builder with the template I get the error:  Evaluated candidate is null - exception? and the Builder stops generating any more strategies
4. Looking through the log (see attached) I see


17:02:05.242 [Blocking computeThread common #0 - Builder_2-Generation 3.0.559] ERROR c.s.g.c.p.MultithreadComputePerformer - Error while running task: Builder_2-Generation 3.0.559(9ea708_Builder_2))
java.lang.NullPointerException: Cannot invoke "String.contains(java.lang.CharSequence)" because the return value of "java.lang.Exception.getMessage()" is null


I have tried updating my java, rebooting, changing to single thread process, changing data source - I still get this error.

Attachments
Build config to recreate error.cfx
(36.09 KiB)
log_2021_10_07.log
(59.96 KiB)
evaluated candidate is null - exception.jpg
(25.15 KiB)
long if open price cross above upper Keltner and random condition - random bar exit template.sqx
(2.87 KiB)
  • Votes +3
  • Project StrategyQuant X
  • Type Bug
  • Status In progress
  • Priority Normal

History

m
#1

Kin

07.10.2021 18:49

Task created

E
#2

Emmanuel

08.10.2021 12:01
Voted for this task.
E
#3

Emmanuel

29.01.2022 14:54
Voted for this task.
Cc
#4

Cyber

27.06.2022 05:40
Voted for this task.
MF
#5

Mark Fric

30.11.2022 11:38

Status changed from New to In progress

Attachment image-0.png added

image-0.png
(35.88 KiB)
the whole problem is that you use custom block that is not complete - see the screenshot.


We'll add check to not include not-complete custom blocks in generation in the next build.


Votes: +3

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please