Errors from strategy template

I'm trying to run a strategy template and it keeps erroring. I've gone through the log and the problem appears to be with a #Period2# field. Going through SQX and double checking the custom block XML file there are only two blocks with #Period2# fields and both of these appear to be fine, e.g. those fields are set to period parameter types. I have no idea where to go from here - can someone take a look?



Attached all the relevant files.


Is there any way to make the log files more readable to non-developers? Being able to know what the exact error is would help me correct it without having to ask for help!

Attachments
st_trd_dirstrsca_fbEn_v02.sqx
(5.14 KiB)
blockGroups.xml
(8.94 KiB)
Log.txt
(7.75 KiB)
project.cfx
(52.64 KiB)
customBlocks.xml
(94.97 KiB)
  • Votes +1
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

PJ
#1

gottogethelp

05.05.2020 18:42

Task created

PJ
#2

gottogethelp

05.05.2020 20:59

Attachment blockGroups.xml added

Attachment customBlocks.xml added

Attachment Log.txt added

Attachment project.cfx added

Attachment st_trd_dirstrsca_fbEn_v03.sqx added

Well things have got even stranger. I decided to delete the two custom blocks that had two periods in them. I then deleted them out of the random groups. I then loaded the strategy template up, clicked on 'use existing block/group' when prompted and resaved as a new file. Loaded this into the builder for the custom project and still getting the #Period2# error. Have no idea where I can go from here. All new files attached.
h
#3

hankeys

05.05.2020 22:01
Voted for this task.
PJ
#4

gottogethelp

06.05.2020 09:07
Hi SQ. Just hypothesising about what this could be. There are a couple of MACD conditions remaining in the latest file. The inputs for both of these are classed as integers and so you have to build integer parameters for these. However, they are actually periods for the two moving averages - could it be that the error is caused from SQ needing period parameter types?
PJ
#5

gottogethelp

06.05.2020 09:17
Just tried deleting those two MACD conditions from the random group and that didn't work - still the same error. Going to keep playing around with deleting conditions until I find the offending one(s).


I have just deleted all the conditions out of the random groups and replaced them with a few simple fixed signals and that worked fine.

PJ
#6

gottogethelp

06.05.2020 10:26
Ok found the issue. It was in the "trd_ADX_rge.chgBinRis" custom block. Somehow one of the ADX period parameters had been replaced by one of the parameters from the MACD custom blocks - I DEFINITELY haven't done that manually. Corrected this and all works ok. Two main conclusions:


1. The custom block / random group feature is amazing but it is still very buggy - I've noticed a number of times when I change or delete something somewhere then something else unintended happens (like the example in this task). I haven't logged the issues because I couldn't replicate it. I think there's some serious testing/improvement that needs to happen on this new feature.


2. The log isn't detailed enough for users to be able to quickly diagnose issues. It took me over an hour this morning of trial and error - deleting each block one by one to track this down. Can we get something added to the log to state which block is causing the error? This will speed things up whilst the whole block/group feature is made more robust.

MF
#7

Mark Fric

26.05.2020 11:37

Status changed from New to Fixed

improved logging, now it indicates the custom block where the error occured and the error reason.

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