2022-01-03 13:57:36 +01:00
|
|
|
import pandas_ta as ta
|
|
|
|
|
import pandas as pd
|
|
|
|
|
from feature_extractors.utils import get_close_low_high
|
|
|
|
|
|
2022-02-17 19:22:17 +01:00
|
|
|
|
2022-01-26 23:22:43 +01:00
|
|
|
def feature_EBSW(df: pd.DataFrame, period: int) -> pd.Series:
|
2022-01-03 13:57:36 +01:00
|
|
|
close, low, high = get_close_low_high(df)
|
|
|
|
|
|
|
|
|
|
return ta.ebsw(close, period)
|