Skip to content

Commit

Permalink
X4: add global buy protection rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
iterativv committed Oct 9, 2023
1 parent 8371475 commit 71378af
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion 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.306"
return "v14.0.307"

# ROI table:
minimal_roi = {
Expand Down Expand Up @@ -6220,6 +6220,19 @@ def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame
| (dataframe['rsi_14_1d'] < 50.0)
| (dataframe['ema_200_dec_4_1d'] == False)
)
# current 4h green with top wick, 5m & 15m downmove, 15m & 1h & 4h & 1d still high
&
(
(dataframe['change_pct_4h'] < 0.04)
| (dataframe['top_wick_pct_4h'] < 0.04)
| (dataframe['rsi_3'] > 20.0)
| (dataframe['rsi_3_15m'] > 30.0)
| (dataframe['rsi_14_15m'] < 33.0)
| (dataframe['rsi_14_1h'] < 46.0)
| (dataframe['cti_20_4h'] < 0.5)
| (dataframe['rsi_14_4h'] < 50.0)
| (dataframe['rsi_14_1d'] < 50.0)
)
)

tok = time.perf_counter()
Expand Down

0 comments on commit 71378af

Please sign in to comment.