GridSearchResult#
tradeexecutor.backtest.grid_search.GridSearchResult Python class in Trading Strategy framework.
- class GridSearchResult[source]#
Bases:
object
Result for one grid combination.
- __init__(combination, state, summary, metrics, cached=False, process_id=None)#
- Parameters:
combination (GridCombination) –
state (State) –
summary (TradeSummary) –
metrics (DataFrame) –
cached (bool) –
- Return type:
None
Methods
__init__
(combination, state, summary, metrics)has_result
(combination)load
(combination)Deserialised from the cached Python pickle.
save
()Serialise as Python pickle.
Attributes
For which grid combination this result is
The full back test state
Calculated trade summary
Performance metrics
Was this result read from the earlier run save
Child process that created this result.
- combination: GridCombination#
For which grid combination this result is
- summary: TradeSummary#
Calculated trade summary
- static load(combination)[source]#
Deserialised from the cached Python pickle.
- Parameters:
combination (GridCombination) –
- __init__(combination, state, summary, metrics, cached=False, process_id=None)#
- Parameters:
combination (GridCombination) –
state (State) –
summary (TradeSummary) –
metrics (DataFrame) –
cached (bool) –
- Return type:
None