An error occured while generating the strategy XML source code. Exc. Can't try to resolve the XML query key, because no XPath support is available. This is either malformed or an XPath expression: @indicatorName ---- FTL stack trace ("~" means nesting-related): - Failed at: #if param.@key[0]?? && !ret && (child... [in template "MetaTrader5/mt5Blocks.inc" in macro "printNestedIndicatorShift" at line 576, column 9] - Reached through: @printNestedIndicatorShift block [in template "MetaTrader5/blocks/IsFalling.tpl" at line 1, column 134] - Reached through: #include "blocks/" + key + ".tpl" [in template "MetaTrader5/mt5Blocks.inc" in macro "printBlock" at line 478, column 27] - Reached through: @printBlock signal?children[0] [in template "MetaTrader5/mt5Blocks.inc" in macro "printRule" at line 385, column 97] - Reached through: @printRule rule, eventName [in template "MetaTrader5/mt5Blocks.inc" in macro "printRulesForEvent" at line 299, column 1] - Reached through: @printRulesForEvent "OnBarUpdate" [in template "MetaTrader5\\Main.tpl" at line 229, column 1] (Hidden 6 "~" lines for terseness) ----
Subject changed from [137] "Can't try to resolve the XML query key, because no XPath support is available." to [136] "Can't try to resolve the XML query key, because no XPath support is available."
Description changed:
An error occured while generating the strategy XML source code. Exc. Can't try to resolve the XML query key, because no XPath support is available. This is either malformed or an XPath expression: @indicatorName ---- FTL stack trace ("~" means nesting-related): - Failed at: #if param.@key[0]?? && !ret && (child... [in template "MetaTrader5/mt5Blocks.inc" in macro "printNestedIndicatorShift" at line 576, column 9] - Reached through: @printNestedIndicatorShift block [in template "MetaTrader5/blocks/IsFalling.tpl" at line 1, column 134] - Reached through: #include "blocks/" + key + ".tpl" [in template "MetaTrader5/mt5Blocks.inc" in macro "printBlock" at line 478, column 27] - Reached through: @printBlock signal?children[0] [in template "MetaTrader5/mt5Blocks.inc" in macro "printRule" at line 385, column 97] - Reached through: @printRule rule, eventName [in template "MetaTrader5/mt5Blocks.inc" in macro "printRulesForEvent" at line 299, column 1] - Reached through: @printRulesForEvent "OnBarUpdate" [in template "MetaTrader5\\Main.tpl" at line 229, column 1] (Hidden 6 "~" lines for terseness) ----
Attachment Strategy 0263710.sqx added
Attachment Strategy 05809.sqx added
Attachment Strategy 0112582.sqx added
Subject changed from [136] "Can't try to resolve the XML query key, because no XPath support is available." to [136] mq5 bug in templates printNestedIndicatorShift
Attachment image-0.png added
Status changed from New to Waiting for information
I don't know whether I tested this correctly.
I have imported the given strategies into SQX in development and SQX 136.1446 and can export them correctly. Am I doing something incorrectly?
Thank you.
Hi Lee,
upon reloading into Retester, it seems to be able to be exported fine. However, when generated in the Builder and trying to export it from there, this error comes up.
Thank you.
I have updated the code and tested it on my machine, and it works correctly now. Please update us if this issue persists in your machine in the coming version.
Thank you.
Hi Lee,
thank you, I will report back it if keeps on happening.
Cheers :-)