removed below_sma and over_sma to wait for better implementation
This commit is contained in:
parent
a632121368
commit
d066817d0b
@ -40,10 +40,6 @@ def buy_strategy_generator(params):
|
|||||||
def populate_buy_trend(dataframe: DataFrame) -> DataFrame:
|
def populate_buy_trend(dataframe: DataFrame) -> DataFrame:
|
||||||
conditions = []
|
conditions = []
|
||||||
# GUARDS AND TRENDS
|
# 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']:
|
if params['uptrend_long_ema']['enabled']:
|
||||||
conditions.append(dataframe['ema50'] > dataframe['ema100'])
|
conditions.append(dataframe['ema50'] > dataframe['ema100'])
|
||||||
if params['mfi']['enabled']:
|
if params['mfi']['enabled']:
|
||||||
@ -124,14 +120,6 @@ def test_hyperopt(conf, pairs, mocker):
|
|||||||
{'enabled': False},
|
{'enabled': False},
|
||||||
{'enabled': True, 'value': hp.uniform('rsi-value', 20, 30)}
|
{'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', [
|
'uptrend_long_ema': hp.choice('uptrend_long_ema', [
|
||||||
{'enabled': False},
|
{'enabled': False},
|
||||||
{'enabled': True}
|
{'enabled': True}
|
||||||
|
Loading…
Reference in New Issue
Block a user