mirror of
https://github.com/wassname/options_backtester.git
synced 2026-07-11 09:50:02 +08:00
12 lines
357 B
Python
12 lines
357 B
Python
from abc import ABCMeta, abstractmethod
|
|
|
|
|
|
class Strategy(metaclass=ABCMeta):
|
|
"""Interface for the different investing strategies"""
|
|
|
|
@abstractmethod
|
|
def generate_signals(self, event):
|
|
"""Provides the mechanisms to calculate the list of signals.
|
|
"""
|
|
raise NotImplementedError("Strategy must implement generate_signals()")
|