Package com.strategyquant.tradinglib
Class WalkForwardResult
java.lang.Object
com.strategyquant.tradinglib.WalkForwardResult
- All Implemented Interfaces:
com.strategyquant.lib.settings.IXMLAble
The Class WalkForwardResult.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.slf4j.LoggerThe Constant Log.intThe param 1.intThe param 2.booleanThe passed.intThe passed conditions.The result name.intThe score perc.Full Sample stats.OOS stats.The stats score.The stats special.The stats stability.intThe tested conditions.The test params.The wf periods. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcomputeRobustnessScore(ResultsGroup resultsGroup, ArrayList<com.strategyquant.tradinglib.conditions.Condition> conditions, int thresholdPct, int periodType)Compute robustness score.voidcomputeStats(ResultsGroup rg)Compute stats.Gets the result key name.org.jdom2.ElementgetXML()Gets the xml.voidsetFromXML(org.jdom2.Element element)Sets the from XML.toString(int periodType)To string.
-
Field Details
-
Log
public static final org.slf4j.Logger LogThe Constant Log. -
wfPeriods
The wf periods. -
resultName
The result name. -
param1
public int param1The param 1. -
param2
public int param2The param 2. -
testParams
The test params. -
stats
Full Sample stats. -
statsOOS
OOS stats. -
statsStability
The stats stability. -
statsScore
The stats score. -
statsSpecial
The stats special. -
testedConditions
public int testedConditionsThe tested conditions. -
passedConditions
public int passedConditionsThe passed conditions. -
scorePerc
public int scorePercThe score perc. -
passed
public boolean passedThe passed.
-
-
Constructor Details
-
WalkForwardResult
public WalkForwardResult()
-
-
Method Details
-
getXML
public org.jdom2.Element getXML()Gets the xml.- Specified by:
getXMLin interfacecom.strategyquant.lib.settings.IXMLAble- Returns:
- the xml
-
setFromXML
Sets the from XML.- Specified by:
setFromXMLin interfacecom.strategyquant.lib.settings.IXMLAble- Parameters:
element- the new from XML- Throws:
Exception- the exception
-
toString
To string.- Parameters:
periodType- the period type- Returns:
- the string
-
getResultKeyName
Gets the result key name.- Returns:
- the result key name
-
computeRobustnessScore
public int computeRobustnessScore(ResultsGroup resultsGroup, ArrayList<com.strategyquant.tradinglib.conditions.Condition> conditions, int thresholdPct, int periodType) throws ExceptionCompute robustness score.- Parameters:
resultsGroup- the results groupconditions- the conditionsthresholdPct- the threshold pctperiodType- the period type- Returns:
- the int
- Throws:
Exception- the exception
-
computeStats
Compute stats.- Parameters:
rg- the rg
-