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 7, 2023
1 parent 25b309b commit 9bf685a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 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.293"
return "v14.0.294"

# ROI table:
minimal_roi = {
Expand Down Expand Up @@ -15120,6 +15120,12 @@ def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFram
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['rsi_3'] > 10.0)
| (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)
item_buy_logic.append(dataframe['close'] < (dataframe['ema_16'] * 0.978))
Expand Down

0 comments on commit 9bf685a

Please sign in to comment.