DoNothing¶
- class hokohoko.standard.DoNothing(lock, parameters=None)¶
Bases:
Predictor
This Predictor does nothing at all, which causes Hokohoko to generate a lot of DONT_BUY, DONT_SELL Orders.
- Parameters
lock (multiprocessing.Lock) – A single lock shared by all Predictors in each Period for this invocation. Stored in
self.lock
.parameters (str) – The parameters passed in from
hokohoko.entities.Config
. Stored inself.parameters
.
- on_start(bars)¶
Does nothing.
- Parameters
bars (list[hokohoko.entities.Bar]) – The list of opening values for the Period.
- on_bar(bars)¶
Does nothing, which is the same as declaring DONT_BUY, DONT_SELL on every Symbol.
- Parameters
bars (list[hokohoko.entities.Bar]) – A list containing the just-closed Bar for each Symbol.
- on_stop()¶
Does nothing.