MinTradeCountFilter#
API documentation for tradeexecutor.backtest.optimiser.MinTradeCountFilter Python class in Trading Strategy framework.
- class MinTradeCountFilter[source]#
Bases:
objectHave a minimum threshold of a created trading position count.
Avoid strategies that have a single or few random successful open and close.
Methods
__init__(min_trade_count)- __call__(result)[source]#
Return true if the trade count threshold is reached.
- Parameters:
result (GridSearchResult) –
- Return type: