Skip to content

Commit

Permalink
X4: buy 102: rework.
Browse files Browse the repository at this point in the history
  • Loading branch information
iterativv committed Oct 5, 2023
1 parent dd37d93 commit 9de57b4
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 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.283"
return "v14.0.284"

# ROI table:
minimal_roi = {
Expand Down Expand Up @@ -15096,24 +15096,37 @@ def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFram
item_buy_logic.append(dataframe['rsi_3_4h'] > 6.0)
item_buy_logic.append(dataframe['cti_20_15m'] < 0.8)
item_buy_logic.append(dataframe['rsi_14_15m'] < 80.0)
item_buy_logic.append(dataframe['cti_20_1h'] < 0.8)
item_buy_logic.append(dataframe['rsi_14_1h'] < 80.0)
item_buy_logic.append(dataframe['cti_20_4h'] < 0.8)
item_buy_logic.append(dataframe['rsi_14_4h'] < 80.0)
item_buy_logic.append(dataframe['cti_20_1d'] < 0.8)
item_buy_logic.append(dataframe['rsi_14_1d'] < 80.0)

item_buy_logic.append((dataframe['not_downtrend_1h'])
| (dataframe['not_downtrend_4h'])
| (dataframe['ema_200_dec_48_1h'] == False)
| (dataframe['ema_200_dec_24_4h'] == False))
| (dataframe['ema_200_dec_24_4h'] == False)
| (dataframe['ema_200_dec_4_1d'] == False))
item_buy_logic.append((dataframe['not_downtrend_15m'])
| (dataframe['not_downtrend_1h'])
| (dataframe['not_downtrend_4h']))
| (dataframe['not_downtrend_4h'])
| (dataframe['ema_200_dec_4_1d'] == False))
item_buy_logic.append((dataframe['rsi_3'] > 16.0)
| (dataframe['rsi_3_15m'] > 16.0)
| (dataframe['rsi_3_1h'] > 16.0)
| (dataframe['rsi_3_4h'] > 16.0))
item_buy_logic.append((dataframe['cti_20_15m'] < -0.8)
| (dataframe['rsi_14_15m'] < 30.0)
| (dataframe['cti_20_1h'] < -0.5)
| (dataframe['rsi_14_1h'] < 50.0)
| (dataframe['cti_20_4h'] < -0.5)
| (dataframe['rsi_14_4h'] < 50.0))
item_buy_logic.append((dataframe['rsi_3'] > 12.0)
| (dataframe['rsi_3_15m'] > 12.0)
| (dataframe['cti_20_1d'] < 0.8))
item_buy_logic.append((dataframe['rsi_3'] > 6.0)
| (dataframe['r_480_1h'] > -85.0)
| (dataframe['r_480_4h'] > -95.0)
| (dataframe['close'] > dataframe['sup_level_4h'])
| (dataframe['close'] > dataframe['sup_level_1d'])
| (dataframe['ema_200_dec_48_1h'] == False)
| (dataframe['ema_200_dec_24_4h'] == False)
| (dataframe['ema_200_dec_4_1d'] == False))

# Logic
item_buy_logic.append(dataframe['rsi_14'] < 32.0)
Expand Down

0 comments on commit 9de57b4

Please sign in to comment.