TradeDecider#

tradeexecutor.strategy.pandas_trader.trade_decision.TradeDecider class.

class TradeDecider[source]#

Bases: Protocol

A callable that decides on new trades for every cycle.

This class provides callable type hinting. Called for each cycle and returns new trades to be executed.

Can be given inline or is a function called decide_trades in a strategy module.

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

__init__(*args, **kwargs)#