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:
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

combination

For which grid combination this result is

state

The full back test state

summary

Calculated trade summary

metrics

Performance metrics

cached

Was this result read from the earlier run save

process_id

Child process that created this result.

combination: GridCombination#

For which grid combination this result is

state: State#

The full back test state

summary: TradeSummary#

Calculated trade summary

metrics: DataFrame#

Performance metrics

cached: bool#

Was this result read from the earlier run save

process_id: int#

Child process that created this result.

Only applicable to multiprocessing

static load(combination)[source]#

Deserialised from the cached Python pickle.

Parameters:

combination (GridCombination) –

save()[source]#

Serialise as Python pickle.

__init__(combination, state, summary, metrics, cached=False, process_id=None)#
Parameters:
Return type:

None