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
Modifier and TypeFieldDescriptionstatic org.slf4j.Logger
The Constant Log.int
The param 1.int
The param 2.boolean
The passed.int
The passed conditions.The result name.int
The score perc.Full Sample stats.OOS stats.The stats score.The stats special.The stats stability.int
The tested conditions.The test params.The wf periods. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
computeRobustnessScore(ResultsGroup resultsGroup, ArrayList<com.strategyquant.tradinglib.conditions.Condition> conditions, int thresholdPct, int periodType)
Compute robustness score.void
computeStats(ResultsGroup rg)
Compute stats.Gets the result key name.org.jdom2.Element
getXML()
Gets the xml.void
setFromXML(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:
getXML
in interfacecom.strategyquant.lib.settings.IXMLAble
- Returns:
- the xml
-
setFromXML
Sets the from XML.- Specified by:
setFromXML
in 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
-