Skip to content

Commit

Permalink
X3: grinding: fine tune the de-risk thresholds for spot.
Browse files Browse the repository at this point in the history
  • Loading branch information
iterativv committed Jan 31, 2024
1 parent cdc674e commit 82eb524
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions NostalgiaForInfinityX3.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class NostalgiaForInfinityX3(IStrategy):
INTERFACE_VERSION = 3

def version(self) -> str:
return "v13.1.69"
return "v13.1.70"

stoploss = -0.99

Expand Down Expand Up @@ -188,7 +188,7 @@ def version(self) -> str:
grinding_mode_1_sub_thresholds_alt_4 = [-0.06, -0.08, -0.11]

# Grinding mode 2
grinding_mode_2_derisk_spot = -0.20
grinding_mode_2_derisk_spot = -0.40
grinding_mode_2_stop_grinds_spot = -0.16
grinding_mode_2_derisk_futures = -0.50
grinding_mode_2_stop_grinds_futures = -0.26
Expand Down Expand Up @@ -681,9 +681,15 @@ def version(self) -> str:
entry_106_res_level_4h_enabled = CategoricalParameter([True, False], default=False, space="buy", optimize=False)
entry_106_sup_level_1d_enabled = CategoricalParameter([True, False], default=False, space="buy", optimize=False)
entry_106_res_level_1d_enabled = CategoricalParameter([True, False], default=False, space="buy", optimize=False)
entry_106_ema_200_not_dec_1h_enabled = CategoricalParameter([True, False], default=False, space="buy", optimize=False)
entry_106_ema_200_not_dec_4h_enabled = CategoricalParameter([True, False], default=False, space="buy", optimize=False)
entry_106_ema_200_not_dec_1d_enabled = CategoricalParameter([True, False], default=False, space="buy", optimize=False)
entry_106_ema_200_not_dec_1h_enabled = CategoricalParameter(
[True, False], default=False, space="buy", optimize=False
)
entry_106_ema_200_not_dec_4h_enabled = CategoricalParameter(
[True, False], default=False, space="buy", optimize=False
)
entry_106_ema_200_not_dec_1d_enabled = CategoricalParameter(
[True, False], default=False, space="buy", optimize=False
)
entry_106_not_downtrend_15m_enabled = CategoricalParameter([True, False], default=False, space="buy", optimize=False)
entry_106_not_downtrend_1h_enabled = CategoricalParameter([True, False], default=False, space="buy", optimize=False)
entry_106_not_downtrend_4h_enabled = CategoricalParameter([True, False], default=False, space="buy", optimize=False)
Expand Down Expand Up @@ -26196,10 +26202,7 @@ def __init__(self, path):

@staticmethod
def rapidjson_load_kwargs():
return {
"number_mode": rapidjson.NM_NATIVE,
"parse_mode": rapidjson.PM_COMMENTS | rapidjson.PM_TRAILING_COMMAS
}
return {"number_mode": rapidjson.NM_NATIVE, "parse_mode": rapidjson.PM_COMMENTS | rapidjson.PM_TRAILING_COMMAS}

@staticmethod
def rapidjson_dump_kwargs():
Expand Down

0 comments on commit 82eb524

Please sign in to comment.