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.
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...