public class SQResultsGroup extends FlexibleSettings
BYTE_MISSING, DOUBLE_MISSING, FLOAT_MISSING, INT_MISSING, LONG_MISSING
Constructor and Description |
---|
SQResultsGroup() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addResult(java.lang.String key,
SQResult results)
Adds the result.
|
java.lang.String |
addResultKey(java.lang.String key)
adds new result key to the list.
|
void |
computeResultsStats()
Compute results stats.
|
void |
convertResultKeysListToPortfolio()
special action - called when result should be loaded as portfolio.
|
SQOrderList |
getBalanceOrders()
Gets the balance orders.
|
java.lang.String |
getFirstResultKey()
Gets the first result key.
|
int |
getNumberOfResultKeys()
Gets the number of result keys.
|
SQOrderList |
getOrdersForResultKey(java.lang.String resultKey)
Gets the orders for result key.
|
SQResult |
getResult(java.lang.String key)
Gets the result.
|
java.util.ArrayList<java.lang.String> |
getResultKeysList()
Gets the result keys list.
|
int |
getResultsCount()
Gets the results count.
|
SQStrategy |
getStrategy()
Gets the strategy.
|
com.strategyquant.futurelib.backtester.SymbolsTable |
getSymbolsTable()
Gets the symbols table.
|
boolean |
isInResultsList(java.lang.String symbol)
Checks if is in results list.
|
boolean |
isPortfolio()
Checks if is portfolio.
|
void |
removeAllResults()
Removes the all results.
|
void |
removeAllResultsExcept(java.lang.String keyToKeep)
Removes the all results except.
|
void |
removeResult(java.lang.String key)
Removes the result.
|
void |
setBalanceOrders(SQOrderList orders)
Sets the balance orders.
|
void |
setEmpty()
Sets the empty.
|
void |
setResult(java.lang.String key,
SQResult results)
Sets the result.
|
void |
setResultKeysList(java.util.ArrayList<java.lang.String> resultKeysList)
Sets the result keys list.
|
void |
setStrategy(SQStrategy strategy)
Sets the strategy.
|
void |
setSymbolsTable(com.strategyquant.futurelib.backtester.SymbolsTable symbolsTable)
Sets the symbols table.
|
clearAll, clone, contains, get, get, getAll, getAllKeys, getBoolean, getBoolean, getByte, getByte, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getString, getString, hetKeyType, remove, set, set, setAll
public SQOrderList getOrdersForResultKey(java.lang.String resultKey)
resultKey
- the result keypublic java.lang.String addResult(java.lang.String key, SQResult results) throws java.lang.Exception
key
- the keyresults
- the resultsjava.lang.Exception
- the exceptionpublic void setResult(java.lang.String key, SQResult results) throws java.lang.Exception
key
- the keyresults
- the resultsjava.lang.Exception
- the exceptionpublic SQResult getResult(java.lang.String key)
key
- the keypublic void removeResult(java.lang.String key)
key
- the keypublic java.lang.String addResultKey(java.lang.String key)
key
- the keypublic int getNumberOfResultKeys()
public java.util.ArrayList<java.lang.String> getResultKeysList()
public boolean isInResultsList(java.lang.String symbol)
symbol
- the symbolpublic java.lang.String getFirstResultKey()
public void setStrategy(SQStrategy strategy)
strategy
- the new strategypublic SQStrategy getStrategy()
public com.strategyquant.futurelib.backtester.SymbolsTable getSymbolsTable()
public int getResultsCount()
public void setEmpty()
public void computeResultsStats() throws java.lang.Exception
java.lang.Exception
- the exceptionpublic void setSymbolsTable(com.strategyquant.futurelib.backtester.SymbolsTable symbolsTable)
symbolsTable
- the new symbols tablepublic void convertResultKeysListToPortfolio()
public void setBalanceOrders(SQOrderList orders)
orders
- the new balance orderspublic SQOrderList getBalanceOrders()
public boolean isPortfolio()
public void removeAllResultsExcept(java.lang.String keyToKeep) throws java.lang.Exception
keyToKeep
- the key to keepjava.lang.Exception
- the exceptionpublic void removeAllResults()
public void setResultKeysList(java.util.ArrayList<java.lang.String> resultKeysList)
resultKeysList
- the new result keys list