MinTradeCountFilter#

API documentation for tradeexecutor.backtest.optimiser.MinTradeCountFilter Python class in Trading Strategy framework.

class MinTradeCountFilter[source]#

Bases: object

Have a minimum threshold of a created trading position count.

Avoid strategies that have a single or few random successful open and close.

__init__(min_trade_count)[source]#

Methods

__init__(min_trade_count)

__init__(min_trade_count)[source]#
__call__(result)[source]#

Return true if the trade count threshold is reached.

Parameters:

result (GridSearchResult) –

Return type:

bool