sync
This commit is contained in:
@@ -77,14 +77,19 @@ def populate_buy_trend(dataframe: DataFrame) -> DataFrame:
|
||||
dataframe.loc[
|
||||
(
|
||||
(dataframe['rsi'] < 35) &
|
||||
(dataframe['adx'] > 29) &
|
||||
(dataframe['fastd'] < 35) &
|
||||
(dataframe['adx'] > 30) &
|
||||
(dataframe['plus_di'] > 0.5)
|
||||
(dataframe['fastd'] > 0) &
|
||||
(dataframe['plus_di'] > 0.1)
|
||||
) |
|
||||
(
|
||||
(dataframe['adx'] > 65) &
|
||||
(dataframe['plus_di'] > 0.5)
|
||||
),
|
||||
# (dataframe['tema'] <= dataframe['blower']) &
|
||||
# (dataframe['rsi'] < 35) &
|
||||
# (dataframe['fastd'] < 48) &
|
||||
# (dataframe['adx'] > 29),
|
||||
'buy'] = 1
|
||||
|
||||
return dataframe
|
||||
@@ -97,18 +102,21 @@ def populate_sell_trend(dataframe: DataFrame) -> DataFrame:
|
||||
:return: DataFrame with buy column
|
||||
"""
|
||||
dataframe.loc[
|
||||
(
|
||||
(
|
||||
(crossed_above(dataframe['rsi'], 70)) |
|
||||
(crossed_above(dataframe['fastd'], 70))
|
||||
) &
|
||||
(dataframe['adx'] > 10) &
|
||||
(dataframe['minus_di'] > 0)
|
||||
) |
|
||||
(
|
||||
(dataframe['adx'] > 70) &
|
||||
(dataframe['minus_di'] > 0.5)
|
||||
),
|
||||
# (
|
||||
# (
|
||||
# (crossed_above(dataframe['rsi'], 70)) |
|
||||
# (crossed_above(dataframe['fastd'], 80))
|
||||
# ) &
|
||||
# (dataframe['adx'] < 30) &
|
||||
# (dataframe['minus_di'] > 0)
|
||||
# ) |
|
||||
# (
|
||||
# (dataframe['adx'] > 70) &
|
||||
# (dataframe['minus_di'] > 0.5)
|
||||
# ),
|
||||
(crossed_above(dataframe['rsi'], 70))|
|
||||
(crossed_above(dataframe['fastd'], 80)) &
|
||||
(dataframe['adx'] > 31),
|
||||
'sell'] = 1
|
||||
return dataframe
|
||||
|
||||
|
@@ -36,7 +36,7 @@ def default_conf():
|
||||
"key": "key",
|
||||
"secret": "secret",
|
||||
"pair_whitelist": ["BTC_EDG", "BTC_ETC", "BTC_MTL", "BTC_OK", "BTC_PAY", "BTC_PIVX", "BTC_SNT", "BTC_XZC", "BTC_VTC", "BTC_XLM", "BTC_SWT",
|
||||
"BTC_MER", "BTC_FTC", "BTC_INCNT", "BTC_TIX", "BTC_RCN", "BTC_RLC", "BTC_TKN", "BTC_TRST", "BTC_MLN", "BTC_TIME", "BTC_LUN"]
|
||||
"BTC_MER", "BTC_FTC", "BTC_INCNT", "BTC_TIX", "BTC_RCN", "BTC_RLC", "BTC_TKN", "BTC_TRST", "BTC_MLN", "BTC_TIME", "BTC_LUN", "BTC_WAVES"]
|
||||
},
|
||||
"telegram": {
|
||||
"enabled": True,
|
||||
|
Reference in New Issue
Block a user