fix guard names to match search space

This commit is contained in:
Janne Sinivirta 2018-06-23 15:47:19 +03:00
parent 136456afc0
commit ab9e2fcea0

View File

@ -242,11 +242,11 @@ class Hyperopt(Backtesting):
# GUARDS AND TRENDS # GUARDS AND TRENDS
if 'mfi-enabled' in params and params['mfi-enabled']: if 'mfi-enabled' in params and params['mfi-enabled']:
conditions.append(dataframe['mfi'] < params['mfi-value']) conditions.append(dataframe['mfi'] < params['mfi-value'])
if 'fastd' in params and params['fastd-enabled']: if 'fastd-enabled' in params and params['fastd-enabled']:
conditions.append(dataframe['fastd'] < params['fastd-value']) conditions.append(dataframe['fastd'] < params['fastd-value'])
if 'adx' in params and params['adx-enabled']: if 'adx-enabled' in params and params['adx-enabled']:
conditions.append(dataframe['adx'] > params['adx-value']) conditions.append(dataframe['adx'] > params['adx-value'])
if 'rsi' in params and params['rsi-enabled']: if 'rsi-enabled' in params and params['rsi-enabled']:
conditions.append(dataframe['rsi'] < params['rsi-value']) conditions.append(dataframe['rsi'] < params['rsi-value'])
# TRIGGERS # TRIGGERS