Description changed:
Attachment Entry Long Building Blocks File sorted by NetProfit Of P1 R.xml added
Attachment Entry Short Building Blocks File sorted by NetProfit Of P1 R.xml added
Attachment Exit Short Building Blocks File sorted by NetProfit Of P1 R.xml added
Attachment Exit Long Building Blocks File sorted by NetProfit Of P1 R.xml added
Attachment log_2022_05_04.log added
Attachment All Building Blocks File.xml added
java.lang.NullPointerException: Cannot invoke "com.strategyquant.tradinglib.IBlock.evaluateBlock(int)" because "this.Indicator" is null
20:12:40.785 [Blocking computeThread common #29] INFO c.s.t.project.ProgressEngine - Build strategies P4 Long : GRID: Stopping build, job failures (exceptions) exceeded 70%!
20:12:40.789 [Blocking computeThread common #48 - Builder_0-Generation 1.0.1] ERROR BacktestEvaluator - java.lang.NullPointerException: Cannot invoke "com.strategyquant.tradinglib.IBlock.evaluateBlock(int)" because "this.Indicator" is null
20:12:40.785 [Blocking computeThread common #10 - Builder_0-Generation 1.0.2] ERROR BacktestEvaluator - java.lang.NullPointerException: Cannot invoke "com.strategyquant.tradinglib.IBlock.evaluateBlock(int)" because "this.Indicator" is null
at SQ.Blocks.Comparisons.IsFalling.OnEvaluateComparison(IsFalling.java:57)
I removed all Equals and not equals Blocks , And I still have this error
What does it means ? How can we avoid this error ?
Attachment log_2022_05_05.log added
Attachment Entry Long Building Blocks File sorted by NetProfit Of P3 R.xml added
Attachment Entry Short Building Blocks File sorted by NetProfit Of P3 R.xml added
Attachment Exit Short Building Blocks File sorted by NetProfit Of P3 R.xml added
Attachment Exit Long Building Blocks File sorted by NetProfit Of P3 R.xml added
Attachment H1201 Template P4 Exc.sqx added
I attached my log, template, and random groups
17:36:50 Build strategies P4 Long : Project stopped
17:36:50 Build strategies P4 Long : GRID: Stopping build, job failures (exceptions) exceeded 70%!
17:36:50 Build strategies P4 Long : Strategy 2.0.2
- Exception in backtest: Cannot invoke "com.strategyquant.tradinglib.IBlock.evaluateBlock(int)" because "this.IndicatorLeft" is null - in 0.01 s.
17:36:50 Build strategies P4 Long : Strategy 2.0.3
- Exception in backtest: Cannot invoke "com.strategyquant.tradinglib.IBlock.evaluateBlock(int)" because "this.Indicator" is null - in 0.00 s.
17:36:50 Build strategies P4 Long : Strategy 2.0.4
- Exception in backtest: Cannot invoke "com.strategyquant.tradinglib.IBlock.evaluateBlock(int)" because "this.IndicatorLeft" is null - in 0.00 s.
for example we have only this.IndicatorLeft without the block name
We need the block name. We need SQX to not stop for one null block
I tested block by block, I check the XML template. there is no problem inside the template, The group of block is inside it with its parameters. It should work
I did many tests , it is clearly a bug inside SXQ.
I have results to share with the community , I need this features
Attachment Build strategies 5.cfx added
Good idea Here is the Build .
Bentra, could you explain more when you write "All of your random conditions are called from groups in this template, so why not just select ALL blocks from the building blocks tab? It looks like you have randomly chosen action as well so don't forget all the order type blocks too. "
In my build , I followed your advice and selected all blocks in the building blocks tab.
When you write about random action, do you mean the order types/Exit type ? I selected them as well. But I still have this error.
Thank you for your help
Description changed:
Attachment H1217 Template P4 Exc.sqx added
Attachment Entry Long Building Blocks File sorted by NetProfit Of P3 R.xml added
Attachment Entry Short Building Blocks File sorted by NetProfit Of P3 R.xml added
Attachment Exit Long Building Blocks File sorted by NetProfit Of P3 R.xml added
Attachment Exit Short Building Blocks File sorted by NetProfit Of P3 R.xml added
Attachment log_2022_05_06.log added
Attachment log_2022_05_06 - Copie.rar added
Attachment H1220 Template P2 2000.sqx added
Attachment All Building Blocks File.xml added
Attachment Build strategies 6.cfx added
Attachment Entry Long Building Blocks File sorted by NetProfit Of P1 R.xml added
Attachment Entry Short Building Blocks File sorted by NetProfit Of P1 R.xml added
Attachment Exit Long Building Blocks File sorted by NetProfit Of P1 R.xml added
Attachment Exit Short Building Blocks File sorted by NetProfit Of P1 R.xml added
Attachment H1222 Template P2 2000.sqx added
Status changed from New to Fixed
Fixed in Build 136 Dev2.