SQX 112 - New custom indicator causes error viewing strategy pseudo code

I created a new indicator building block (attached source) and a new signal (attached source).



Built some strategies (example attached) using this new indicator building block.


However, if you try to view the strategy source as pseudo code you see:


An error occured while generating the strategy XML source code.
Exc. Template inclusion failed (for parameter value "./blocks/RandomLevel.tpl"):
Template not found for name "PseudoCode/./blocks/RandomLevel.tpl" (normalized: "PseudoCode/blocks/RandomLevel.tpl").
The name was interpreted by this TemplateLoader: FileTemplateLoader(baseDir="C:\StrategyQuantX\extend\Code").


----
FTL stack trace ("~" means nesting-related):
- Failed at: #include "./blocks/" + block.@key + "...  [in template "PseudoCode/pseudoBlocks.inc" in macro "printBlock" at line 115, column 20]
- Reached through: @printBlock block?children[0], shift  [in template "PseudoCode/pseudoBlocks.inc" in macro "printBlock" at line 106, column 9]
- Reached through: @printBlock c, shift  [in template "PseudoCode/pseudoBlocks.inc" in macro "printBlockChild" at line 141, column 14]
- Reached through: @printBlockChild block, "#Left#"  [in template "PseudoCode/blocks/IsGreater.tpl" at line 1, column 2]
- Reached through: #include "./blocks/" + block.@key + "...  [in template "PseudoCode/pseudoBlocks.inc" in macro "printBlock" at line 115, column 20]
- Reached through: @printBlock signal?children[0]  [in template "PseudoCode/pseudoBlocks.inc" in macro "printRule" at line 74, column 69]
- Reached through: @printRule rule, ruleName  [in template "PseudoCode/pseudoBlocks.inc" in macro "printRulesForEvent" at line 7, column 1]
- Reached through: @printRulesForEvent "OnBarUpdate", "T...  [in template "PseudoCode\\Main.tpl" at line 40, column 1]
(Hidden 4 "~" lines for terseness)


----

Attachments
Strategy 0115.sqx
(16.26 KiB)
Build.xml
(1.17 MiB)
RandomSignal.java
(976 B)
RandomLevel.java
(1.95 KiB)
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

m
#1

mikeyc

24.10.2018 22:18

Task created

m
#2

mikeyc

24.10.2018 22:18
Voted for this task.
MF
#3

Mark Fric

25.10.2018 11:11

Status changed from New to Fixed

Added new part to Extending SQ documentation, there is one more (simple) step required to make it work after adding new indicator.

Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please