add hilbert transform leadsine trigger

This commit is contained in:
Janne Sinivirta
2017-11-12 09:13:54 +02:00
parent 13537e3ce4
commit 660f01b514
2 changed files with 5 additions and 0 deletions

View File

@@ -49,6 +49,9 @@ def populate_indicators(dataframe: DataFrame) -> DataFrame:
dataframe['macd'] = macd['macd']
dataframe['macdsignal'] = macd['macdsignal']
dataframe['macdhist'] = macd['macdhist']
hilbert = ta.HT_SINE(dataframe)
dataframe['htsine'] = hilbert['sine']
dataframe['htleadsine'] = hilbert['leadsine']
return dataframe