Error generating MT5 code - LowestInRangeTimeFrm/HighestInRangeTmeFrm

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"falsetrue  [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"falsetrue  [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.
Attachments
Strategy 1010190 - bug.sqx
(53.49 KiB)
Strategy 54159 -bug.sqx
(187.52 KiB)
  • Votes 0
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority High

History

NN
#1

nnikolaev

25.08.2020 09:39

Task created

TB
#2

Tomas Brynda

18.09.2020 13:57

Status changed from New to Fixed

NN
#3

nnikolaev

01.10.2020 14:20

Attachment Strategy 11147.sqx added

Strategy 11147.sqx
(159.54 KiB)
Hi, 


I have the latest version 129.302. 


Still the problem occurs for some strategies. Attached is another one. 


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"falsetrue  [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 rule  [in template "MetaTrader5/mt5Blocks.inc" in macro "printIndicatorConstants" at line 12, column 15]
    ... (Had 19 more, hidden for tersenes) (Hidden 18 "~" lines for terseness)

----

Votes: 0

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please