Create template not working
6 replies
Martin Villafañe
11 months ago #286753
Good morning.
I have a template created from a strategy with fixed entry rules. and what I need is to build a TP, SL.
but when I load this template in the builder and launch the mining.
It gives me the following error:
Exception in backtest: Cannot create strategy from XML! Error while parsing rule ‘Short entry’ – No Variable with ID ‘0’ defined!
I have not been able to locate the problem.
In the build I have it configured as follows:
Trading dir. Short Only
Strategy Style: SQX Signals
Build Mode: Genetic
Conditions:
a:Entry min:0 max:0 (this is because the strategy entry conditions are fixed)
b: Exit Rule: min:0 max:0
c: global indicators: 8 – 200
d:shift:3
Stop Loss : Required – ATR
Take Profit : Required – indicators
Can anyone think of why the template is failing me?
greetings

tomas262
11 months ago #286761
Hi, do you use the latest SQX version 139? If not please update. Let us know if the issue persist in the latest version
Martin Villafañe
11 months ago #286765
I use 138, I will update to 139 and try again
Thomas Praun
8 months ago #287530
I am having the same issue. I upgraded from version 138 to 140, but the problem is not resolved. What I see is:
12:33:30 Finished in 0s
12:33:29 Project stopped
12:33:29 GRID: Stopping build, job failures (exceptions) exceeded 70%!
12:33:29 Strategy 2.0.4 – Exception in backtest: Cannot create strategy from XML! Error while parsing rule ‘Short entry’ – No Variable with ID ‘0’ defined! – in 0.01 s.
12:33:29 Strategy 2.0.6 – Exception in backtest: Cannot create strategy from XML! Error while parsing rule ‘Short entry’ – No Variable with ID ‘0’ defined! – in 0.01 s.
12:33:29 Strategy 2.0.1 – Exception in backtest: Cannot create strategy from XML! Error while parsing rule ‘Short entry’ – No Variable with ID ‘0’ defined! – in 0.01 s.
12:33:29 — Generating initial population for island #4
12:33:29 — Generating initial population for island #3
12:33:29 — Generating initial population for island #5
12:33:29 — Generating initial population for island #2
12:33:29 — Generating initial population for island #1
12:33:29 —————————–
12:33:29 All backtest data prepared
12:33:29 Data loaded from memory
12:33:29 Loading backtest data for Main test – EURUSD_Darwinex_M1_UTCPlus02 / H1
12:33:29 Initializing backtest data…

tomas262
8 months ago #287567
Thomas, please, send me the template to [email protected], I will check where the problem could be
Matias Casas Lopez
3 months ago #289156
Hi I had the same problem!
I solved by loading the strategy in retested, clicking in it, tools edit parameters and selecting in the direction of the strategy the value true (i noticed all was in false so i think that is the problem) then created the template again and it works!
Hope this can help you.
Best,
Matias.
Petr
3 months ago #289164
Hello,
Thank you for your feedback.
I believe the issue may arise because the variable is not set as configurable, which means it isn’t “activated” in the AW variables settings. This is reflected in the recent “tools -> edit parameters” section, showing as false.
If you require further assistance, please reach out to us at [email protected] and provide the problematic template in .sqx format.
We will review it promptly.
Thank you.
Best regards,
Petr
SQX Support
Viewing 6 replies - 1 through 6 (of 6 total)