[changes] - Hyperopt code example
This commit is contained in:
parent
cf39dd2163
commit
6235a4d92e
@ -237,9 +237,9 @@ class MyAwesomeStrategy(IStrategy):
|
||||
dataframe['macdhist'] = macd['macdhist']
|
||||
|
||||
bollinger = ta.BBANDS(dataframe, timeperiod=20, nbdevup=2.0, nbdevdn=2.0)
|
||||
dataframe['bb_lowerband'] = boll['lowerband']
|
||||
dataframe['bb_middleband'] = boll['middleband']
|
||||
dataframe['bb_upperband'] = boll['upperband']
|
||||
dataframe['bb_lowerband'] = bollinger['lowerband']
|
||||
dataframe['bb_middleband'] = bollinger['middleband']
|
||||
dataframe['bb_upperband'] = bollinger['upperband']
|
||||
return dataframe
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user