Newer
Older
backtesting / model.py
@david david on 18 Jan 2023 389 bytes init
from abc import ABC, abstractmethod


class Model(ABC):

    @abstractmethod
    def plot_model(self):
        pass

    @abstractmethod
    def update_model(self):
        """ usually to be called after self.add_model_data """
        pass

    @abstractmethod
    def add_model_data(self):
        """ usually a daily open/high/low/close price passed in from event_loop """
        pass