Hi,
I am getting the following errors when trying to generate MT5 code for the attached strategies:
An error occured while generating the strategy XML source code.
Exc. Can't convert this string to number: "HighestInRangeTmeFrm"
The blamed expression:
==> intValue?number [in template "global/globalFunctions.inc" at line 343, column 10]
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${(intValue?number / 100)?int} [in template "global/globalFunctions.inc" in macro "printTimeFromHHMM" at line 343, column 7]
- Reached through: @printTimeFromHHMM block, "#TimeFrom#" [in template "MetaTrader5/blocks/HighestInRange.tpl" at line 1, column 56]
- Reached through: #include "blocks/" + key + ".tpl" [in template "MetaTrader5/mt5Blocks.inc" in macro "printBlock" at line 424, column 27]
- Reached through: @printBlock c, "0", false, true [in template "MetaTrader5/mt5Blocks.inc" in macro "findIndicatorsUsedInFunctions" at line 61, column 75]
- Reached through: @findIndicatorsUsedInFunctions c [in template "MetaTrader5/mt5Blocks.inc" in macro "findIndicatorsUsedInFunctions" at line 83, column 11]
- Reached through: @findIndicatorsUsedInFunctions c [in template "MetaTrader5/mt5Blocks.inc" in macro "findIndicatorsUsedInFunctions" at line 83, column 11]
- Reached through: @findIndicatorsUsedInFunctions c [in template "MetaTrader5/mt5Blocks.inc" in macro "findIndicatorsUsedInFunctions" at line 83, column 11]
- Reached through: @findIndicatorsUsedInFunctions c [in template "MetaTrader5/mt5Blocks.inc" in macro "findIndicatorsUsedInFunctions" at line 83, column 11]
- Reached through: @findIndicatorsUsedInFunctions c [in template "MetaTrader5/mt5Blocks.inc" in macro "findIndicatorsUsedInFunctions" at line 83, column 11]
... (Had 28 more, hidden for tersenes) (Hidden 18 "~" lines for terseness)
----
An error occured while generating the strategy XML source code.
Exc. Can't convert this string to number: "LowestInRangeTimeFrm"
The blamed expression:
==> intValue?number [in template "global/globalFunctions.inc" at line 343, column 10]
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${(intValue?number / 100)?int} [in template "global/globalFunctions.inc" in macro "printTimeFromHHMM" at line 343, column 7]
- Reached through: @printTimeFromHHMM block, "#TimeFrom#" [in template "MetaTrader5/blocks/LowestInRange.tpl" at line 1, column 55]
- Reached through: #include "blocks/" + key + ".tpl" [in template "MetaTrader5/mt5Blocks.inc" in macro "printBlock" at line 424, column 27]
- Reached through: @printBlock c, "0", false, true [in template "MetaTrader5/mt5Blocks.inc" in macro "findIndicatorsUsedInFunctions" at line 61, column 75]
- Reached through: @findIndicatorsUsedInFunctions c [in template "MetaTrader5/mt5Blocks.inc" in macro "findIndicatorsUsedInFunctions" at line 83, column 11]
- Reached through: @findIndicatorsUsedInFunctions c [in template "MetaTrader5/mt5Blocks.inc" in macro "findIndicatorsUsedInFunctions" at line 83, column 11]
- Reached through: @findIndicatorsUsedInFunctions c [in template "MetaTrader5/mt5Blocks.inc" in macro "findIndicatorsUsedInFunctions" at line 83, column 11]
- Reached through: @findIndicatorsUsedInFunctions c [in template "MetaTrader5/mt5Blocks.inc" in macro "findIndicatorsUsedInFunctions" at line 83, column 11]
- Reached through: @findIndicatorsUsedInFunctions c [in template "MetaTrader5/mt5Blocks.inc" in macro "findIndicatorsUsedInFunctions" at line 83, column 11]
... (Had 28 more, hidden for tersenes) (Hidden 18 "~" lines for terseness)
----
Please review and fix it if possible.
I have the latest version 129.302.
Still the problem occurs for some strategies. Attached is another one.