Class StrategyStats
java.lang.Object
com.wualabs.qtsurfer.engine.strategy.StrategyStats
Manages strategy stats and performance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncountYield(@NonNull BigDecimal yield) How this strategy's orders fared in the execution pipeline.doublefloatdoublelongdoublelonglonginthashCode()toString()
-
Constructor Details
-
StrategyStats
-
-
Method Details
-
instrumentUpdate
-
countYield
-
getTotalProfitYields
public long getTotalProfitYields() -
getTotalLossYields
public long getTotalLossYields() -
getTotalYields
public long getTotalYields() -
getNetYield
public double getNetYield() -
getTotalProfitYield
public double getTotalProfitYield() -
getTotalLossYield
public double getTotalLossYield() -
getPnLRatio
public float getPnLRatio() -
toString
-
hashCode
-
getStrategy
-
getInstrumentOps
-
getExecutionStats
How this strategy's orders fared in the execution pipeline. Kept as its own object rather than more fields here: yields are what the strategy earned, these are what it cost to get there, and the two are read by different people. Reachable through the stats because that is already the one accessor an observer has on aStrategy.
-