READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Custome Build Error … GenerateException: There is no price block

1 replies

Philip Hoffer

Subscriber, bbp_participant, sq-ultimate, customer, community, 7 replies.

Visit profile

1 year ago #289399

Hi,

I’m using build 142.2336 of StrategyQuant

I’m struggling with a GenerateException when attempting to build a custom project built using Templates.

I have two templates:

1) Short Breakout Market Entry Template

Enters a short using a Market order if RandomCondition is met where RandomCondition a member of the StatOasis Candlestick Pattern random group.

It also has a exit condition of Exit after n bars where n is randomised 1:4:1

This template works and is used successfully in the project to identify and retest candlestick patterns using a Short Breakout Market order.

2) Short Breakout Limit Entry Template

Identical to template 1 but it opens the short using a limit order based on Low[1]

I can use this template in builder and it generates the expected results but when I try and use it in the Custom Build it fails.

If I run the task just from step 8. EUR/USD Short Breakout Limit – IS / OOS I get the following log …

17:24:52 Project finished 17:24:52 EUR/USD Short Breakout Limit – IS/OOS : Finished in 0s 17:24:52 EUR/USD Short Breakout Limit – IS/OOS : GRID: Stopping build, job failures (exceptions) exceeded 70%! 17:24:52 EUR/USD Short Breakout Limit – IS/OOS : Created new batch of strategies, evaluating them… 17:24:52 EUR/USD Short Breakout Limit – IS/OOS : Project stopped 17:24:52 EUR/USD Short Breakout Limit – IS/OOS : GRID: Stopping build, job failures (exceptions) exceeded 70%! 17:24:52 EUR/USD Short Breakout Limit – IS/OOS : Strategy 0.7Strategy 0.7 – Error: com.strategyquant.tradinglib.generator.GenerateException: There is no Price block defined! at com.strategyquant.tradinglib.blocks.random.ReplacementConfig.chooseSpecialRandomly(Unknown Source) at com.strategyquant.tradinglib.blocks.random.ReplacementConfig.generateSpecialBlock(Unknown Source) at com.strategyquant.tradinglib.blocks.random.ReplacementParameter.addFormulaPriceParam(Unknown Source) at com.strategyquant.tradinglib.blocks.random.ReplacementParameter.generateFormulaParameters(U finished in 0.01 s. 17:24:52 EUR/USD Short Breakout Limit – IS/OOS : Strategy 0.0Strategy 0.0 – Error: com.strategyquant.tradinglib.generator.GenerateException: There is no Price block defined! at com.strategyquant.tradinglib.blocks.random.ReplacementConfig.chooseSpecialRandomly(Unknown Source) at com.strategyquant.tradinglib.blocks.random.ReplacementConfig.generateSpecialBlock(Unknown Source) at com.strategyquant.tradinglib.blocks.random.ReplacementParameter.addFormulaPriceParam(Unknown Source) at com.strategyquant.tradinglib.blocks.random.ReplacementParameter.generateFormulaParameters(U finished in 0.01 s. 17:24:52 EUR/USD Short Breakout Limit – IS/OOS : Strategy 0.4Strategy 0.4 – Error: com.strategyquant.tradinglib.generator.GenerateException: There is no Price block defined! at com.strategyquant.tradinglib.blocks.random.ReplacementConfig.chooseSpecialRandomly(Unknown Source) at com.strategyquant.tradinglib.blocks.random.ReplacementConfig.generateSpecialBlock(Unknown Source) at com.strategyquant.tradinglib.blocks.random.ReplacementParameter.addFormulaPriceParam(Unknown Source) at com.strategyquant.tradinglib.blocks.random.ReplacementParameter.generateFormulaParameters(U finished in 0.01 s. 17:24:52 EUR/USD Short Breakout Limit – IS/OOS : Created new batch of strategies, evaluating them… 17:24:52 EUR/USD Short Breakout Limit – IS/OOS : Starting strategies generation… 17:24:52 EUR/USD Short Breakout Limit – IS/OOS : Test run finished ok 17:24:52 EUR/USD Short Breakout Limit – IS/OOS : Loading data and starting test run… 17:24:52 EUR/USD Short Breakout Limit – IS/OOS : —————————– 17:24:52 EUR/USD Short Breakout Limit – IS/OOS : All backtest data prepared 17:24:52 EUR/USD Short Breakout Limit – IS/OOS : Data loaded from memory 17:24:52 EUR/USD Short Breakout Limit – IS/OOS : Loading backtest data for Main test – M6E.D / D1 17:24:52 EUR/USD Short Breakout Limit – IS/OOS : Initializing backtest data…

Any ideas grtefully received.

Thanksa
Phil

Attachments:
You must be logged in to view attached files.

0

Philip Hoffer

Subscriber, bbp_participant, sq-ultimate, customer, community, 7 replies.

Visit profile

1 year ago #289400

This has been confirmed as a software defect.
In my configuration I have no building blocks selected as it is all controlled via my template and I control the limit entry price in the template.

However the software defect is expecting a price level defined in the building blocks.

The workaround for this is to:

1. Open Building Blocks panel
2. Expand Stop/Limit entry blocks
3. Select any element, e.g. High from the Stop/Limit Price Levels.

This won’t affect my template but it will workaround the software issue.

Hope that helps
Phil

0

Viewing 1 replies (of 1 total)