mizarlabs.transformers.technical package¶
Submodules¶
mizarlabs.transformers.technical.factory module¶
mizarlabs.transformers.technical.macd module¶
mizarlabs.transformers.technical.moving_average module¶
- class mizarlabs.transformers.technical.moving_average.ExponentialWeightedMovingAverageDifference(fast: int, slow: int, column_name: str, normalised: bool = True)[source]¶
Bases:
object
- class mizarlabs.transformers.technical.moving_average.MovingAverageCrossOver(fast: int, slow: int, column_name: str, fill_between_crossovers: bool = False)[source]¶
Bases:
sklearn.base.BaseEstimator,sklearn.base.TransformerMixinMoving average crossover transformer
It transform the input data to a 1 when the the fast moving average goes above the slow moving average and -1 when the slow moving average goes above the fast moving average. When fill_between_crossovers is true, then the transfromation will be equal to 1 when the fast moving average is above the slow one and -1 viceversa.
The transformer is specified by the fast and slow moving average number of bars.
- Parameters
fast (int) – number of bars to use for the moving average of the fast moving average
slow (int) – number of bars to use for the moving average of the slow moving average
column_name (str) – The name of the column in input that will be used for the transformation.
fill_between_crossovers (bool) – whether or not to fill the crossover value untill the next crossover.
- class mizarlabs.transformers.technical.moving_average.MovingAverageCrossOverPredictor(fast: int, slow: int, column_name: str, fill_between_crossovers: bool = False)[source]¶
Bases:
mizarlabs.transformers.technical.moving_average.MovingAverageCrossOver- classes_ = [-1.0, 0.0, 1.0]¶
- n_classes_ = 3¶