You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
817 B

"""Dumb indicator, for testing purposes."""
import pandas as pd # type: ignore
from ..interfaces import Indicator
class Dumb(Indicator):
"""Replay the value."""
def __init__(self, value: pd.Series):
"""Save the value."""
#value c'est juste des settings qu'on veut
self.value = value
def __call__(self, data: pd.DataFrame) -> pd.Series:
"""Return a dataframe of valuation of each stock from the input data.
data (DataFrame): Time-Stock valuated candlestick data.
For each time and each stock give (high, low, open, close).
DataFrame: Stock valuated float.
For each stock give -1 if realy bad and +1 if realy good.
return self.value