Non-descript Builder error results in huge amount of time tracking down the problem

Please see the attached custom indicator (MyMA.java), which I have used in a simple Strategy Template with a single Random Group. For some reason this is throwing an error upon using it. I'm still troubleshooting what the issue is. However, the Builder does not indicate anything that really helps me pinpoint either the Random Group involved, or the customer indicator involved (MyMA()). I had to deconstruct a far more complicated strategy template line by line to ultimately get to the bottom of it. Each time this kind of error happens, it's many hours spent on the debug. Would be great if the Builder's error message gave the information necessary to quickly pinpoint the problem. 
Attachments
MyMovingAverage.java
(2.97 KiB)
StrategyTemplateDebug.sqx
(2.90 KiB)
  • Votes +2
  • Project StrategyQuant X
  • Type Bug
  • Status New
  • Priority Normal

History

RH
#1

rhartstein

11.02.2023 06:01

Task created

RH
#2

rhartstein

11.02.2023 06:02
Here's the error as reported in the Builder:


23:55:10 Finished in 0s 23:55:10 Created new batch of strategies, evaluating them... 23:55:10 Project stopped 23:55:10 GRID: Stopping build, job failures (exceptions) exceeded 70%! 23:55:10 Strategy 0.1Strategy 0.1 - Error: java.lang.NullPointerException: Cannot invoke "com.strategyquant.tradinglib.blocks.random.ItemRandomValueRanges.getForParam(String)" because "<parameter3>" is null 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.strateg finished in 0.00 s. 23:55:10 Strategy 0.2Strategy 0.2 - Error: java.lang.NullPointerException: Cannot invoke "com.strategyquant.tradinglib.blocks.random.ItemRandomValueRanges.getForParam(String)" because "<parameter3>" is null 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.strateg finished in 0.00 s. 23:55:10 Created new batch of strategies, evaluating them... 23:55:10 Strategy 0.3Strategy 0.3 - Error: java.lang.NullPointerException: Cannot invoke "com.strategyquant.tradinglib.blocks.random.ItemRandomValueRanges.getForParam(String)" because "<parameter3>" is null 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.strateg finished in 0.00 s. 23:55:10 Created new batch of strategies, evaluating them... 23:55:10 Starting strategies generation... 23:55:10 Test run finished ok 23:55:10 Loading data and starting test run... 23:55:10 ----------------------------- 23:55:10 All backtest data prepared 23:55:10 Data loaded from memory 23:55:10 Loading backtest data for Main test - BTCUSD / H4 23:55:10 Initializing backtest data...

JT
#3

TiNTa

11.02.2023 13:36
Voted for this task.
JT
#4

TiNTa

11.02.2023 13:38
We have this GRID: Stopping build, job failures (exceptions) exceeded 70%! OR GRID: Stopping retest, job failures (exceptions) exceeded 70%! stoppage since maybe build 128..
E
#5

Emmanuel

16.08.2023 01:03
Voted for this task.

Votes: +2

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please