Quant Editor article: Add new statistical value – comments
3 replies
AC1962
7 years ago #116423
AC1962
7 years ago #141957
Hi Mark
Further to my post above: Item 3. I have subsequently found the listing of available ‘class constants’ on web page: https://strategyquant.com/doc/article/statsvalues-constants.html
One of the listed class constants I wish to use is: DEGREES_OF_FREEDOM. However, this class constant currently returns ‘0’ value for all my strategies loaded into QA, although within SQ a non-zero value for statistic ‘Degrees Of Freedom’ is given for each strategy. Please can you investigate and confirm what has gone wrong and why QA is currently returning ‘0’ value for DEGREES_OF_FREEDOM?
Thanks
AC1962
Mark Fric
7 years ago #142040
Hello,
there were some minor updates in the program, so it might be that my older examples have to be tweaked to make them compile.
As for DEGREES_OF_FREEDOM – this is a measure computed from strategy complexity, not from its history results, so it is zero in QA. It is because QA doesn’t have access to the strategy properties, it loads only trading history.
Degrees of freedom basically tells you how complicated the strategy is and how many parameters it uses, smaller number means the strategy uses less parameters which is usually better.
Mark
StrategyQuant architect
AC1962
7 years ago #142047
Hi Mark
Thanks. So am I correct is assuming that the DEGREES_OF_FREEDOM constant will be accessible as a calculated non-zero value for use within an SQ4 snippet, but not in QA?
If so, this is fine as I eventually wish to access the DEGREES_OF_FREEDOM constant in SQ4 to create a user defined ratio to filter on.
Thanks
AC1962
Viewing 3 replies - 1 through 3 (of 3 total)