Skip to content

Commit

Permalink
X4: fine tune buy protection rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
iterativv committed Oct 11, 2023
1 parent 4a4f740 commit 507bd01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions NostalgiaForInfinityX4.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class NostalgiaForInfinityX4(IStrategy):
INTERFACE_VERSION = 3

def version(self) -> str:
return "v14.0.317"
return "v14.0.318"

# ROI table:
minimal_roi = {
Expand Down Expand Up @@ -6351,13 +6351,14 @@ def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame
| (dataframe['rsi_14_1d'] < 46.0)
| (dataframe['ema_200_dec_48_1h'] == False)
)
# 1h downtrend, 5m & 1h & 4h downmove, 1h & 4h & 1d still high
# 1h downtrend, 5m & 15m & 1h & 4h downmove, 1h & 4h & 1d still high
&
(
(dataframe['not_downtrend_1h'])
| (dataframe['rsi_3'] > 10.0)
| (dataframe['close'] > dataframe['bb20_2_low_15m'])
| (dataframe['close'] > dataframe['sup_level_4h'])
| (dataframe['rsi_3_15m'] > 36.0)
| (dataframe['rsi_3_1h'] > 30.0)
| (dataframe['rsi_3_4h'] > 36.0)
| (dataframe['rsi_14_1h'] < 36.0)
Expand Down

0 comments on commit 507bd01

Please sign in to comment.