added new strategy, based on the Simple Strategy

This commit is contained in:
Gert Wohlgemuth
2018-05-01 14:20:34 -07:00
parent 3f1b48ba94
commit 4e2cd3e7ab
2 changed files with 84 additions and 1 deletions

View File

@@ -38,10 +38,11 @@ class Quickie(IStrategy):
def populate_indicators(self, dataframe: DataFrame) -> DataFrame:
dataframe['tema'] = ta.TEMA(dataframe, timeperiod=9)
dataframe['adx'] = ta.ADX(dataframe)
dataframe['sma_200'] = ta.SMA(dataframe, timeperiod=200)
dataframe['sma_50'] = ta.SMA(dataframe, timeperiod=50)
dataframe['adx'] = ta.ADX(dataframe)
# required for graphing
bollinger = qtpylib.bollinger_bands(dataframe['close'], window=20, stds=2)