removed below_sma and over_sma to wait for better implementation

This commit is contained in:
Janne Sinivirta 2017-10-28 18:25:40 +03:00
parent a632121368
commit d066817d0b

View File

@ -40,10 +40,6 @@ def buy_strategy_generator(params):
def populate_buy_trend(dataframe: DataFrame) -> DataFrame:
conditions = []
# GUARDS AND TRENDS
if params['below_sma']['enabled']:
conditions.append(dataframe['close'] < dataframe['sma'])
if params['over_sma']['enabled']:
conditions.append(dataframe['close'] > dataframe['sma'])
if params['uptrend_long_ema']['enabled']:
conditions.append(dataframe['ema50'] > dataframe['ema100'])
if params['mfi']['enabled']:
@ -124,14 +120,6 @@ def test_hyperopt(conf, pairs, mocker):
{'enabled': False},
{'enabled': True, 'value': hp.uniform('rsi-value', 20, 30)}
]),
'below_sma': hp.choice('below_sma', [
{'enabled': False},
{'enabled': True}
]),
'over_sma': hp.choice('over_sma', [
{'enabled': False},
{'enabled': True}
]),
'uptrend_long_ema': hp.choice('uptrend_long_ema', [
{'enabled': False},
{'enabled': True}