Skip to content

Commit

Permalink
X4: grinding: add alt grind stakes.
Browse files Browse the repository at this point in the history
For low balances.
  • Loading branch information
iterativv committed Mar 6, 2024
1 parent 0faa57c commit 8f163c2
Showing 1 changed file with 49 additions and 1 deletion.
50 changes: 49 additions & 1 deletion NostalgiaForInfinityX4.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class NostalgiaForInfinityX4(IStrategy):
INTERFACE_VERSION = 3

def version(self) -> str:
return "v14.1.298"
return "v14.1.299"

stoploss = -0.99

Expand Down Expand Up @@ -231,12 +231,18 @@ def version(self) -> str:
[0.15, 0.20, 0.25, 0.30, 0.35],
[0.20, 0.25, 0.30, 0.35, 0.40],
[0.30, 0.35, 0.40, 0.45, 0.50],
[0.40, 0.45, 0.50, 0.55, 0.60],
[0.50, 0.55, 0.60, 0.65, 0.70],
[0.60, 0.65, 0.70, 0.75, 0.80],
]
grind_2_sub_thresholds_spot = [
[-0.08, -0.10, -0.12, -0.14, -0.16],
[-0.08, -0.10, -0.12, -0.14, -0.16],
[-0.08, -0.10, -0.12, -0.14, -0.16],
[-0.08, -0.10, -0.12, -0.14, -0.16],
[-0.08, -0.10, -0.12, -0.14, -0.16],
[-0.08, -0.10, -0.12, -0.14, -0.16],
[-0.08, -0.10, -0.12, -0.14, -0.16],
]

grind_2_stop_grinds_futures = -0.30
Expand All @@ -246,12 +252,18 @@ def version(self) -> str:
[0.15, 0.20, 0.25, 0.30, 0.35],
[0.20, 0.25, 0.30, 0.35, 0.40],
[0.30, 0.35, 0.40, 0.45, 0.50],
[0.40, 0.45, 0.50, 0.55, 0.60],
[0.50, 0.55, 0.60, 0.65, 0.70],
[0.60, 0.65, 0.70, 0.75, 0.80],
]
grind_2_sub_thresholds_futures = [
[-0.08, -0.10, -0.12, -0.14, -0.16],
[-0.08, -0.10, -0.12, -0.14, -0.16],
[-0.08, -0.10, -0.12, -0.14, -0.16],
[-0.08, -0.10, -0.12, -0.14, -0.16],
[-0.08, -0.10, -0.12, -0.14, -0.16],
[-0.08, -0.10, -0.12, -0.14, -0.16],
[-0.08, -0.10, -0.12, -0.14, -0.16],
]

grind_3_stop_grinds_spot = -0.10
Expand All @@ -261,12 +273,18 @@ def version(self) -> str:
[0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15],
[0.20, 0.20, 0.20, 0.20, 0.20, 0.20, 0.20, 0.20, 0.20, 0.20],
[0.30, 0.30, 0.30, 0.30, 0.30, 0.30, 0.30, 0.30, 0.30, 0.30],
[0.40, 0.40, 0.40, 0.40, 0.40, 0.40, 0.40, 0.40, 0.40, 0.40],
[0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50],
[0.60, 0.60, 0.60, 0.60, 0.60, 0.60, 0.60, 0.60, 0.60, 0.60],
]
grind_3_sub_thresholds_spot = [
[-0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08],
[-0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08],
[-0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08],
[-0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08],
[-0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08],
[-0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08],
[-0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08],
]

grind_3_stop_grinds_futures = -0.30
Expand All @@ -276,12 +294,18 @@ def version(self) -> str:
[0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15],
[0.20, 0.20, 0.20, 0.20, 0.20, 0.20, 0.20, 0.20, 0.20, 0.20],
[0.30, 0.30, 0.30, 0.30, 0.30, 0.30, 0.30, 0.30, 0.30, 0.30],
[0.40, 0.40, 0.40, 0.40, 0.40, 0.40, 0.40, 0.40, 0.40, 0.40],
[0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50, 0.50],
[0.60, 0.60, 0.60, 0.60, 0.60, 0.60, 0.60, 0.60, 0.60, 0.60],
]
grind_3_sub_thresholds_futures = [
[-0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08],
[-0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08],
[-0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08],
[-0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08],
[-0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08],
[-0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08],
[-0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08, -0.08],
]

# Non rebuy modes
Expand Down Expand Up @@ -322,25 +346,37 @@ def version(self) -> str:
[0.20, 0.25, 0.30, 0.35, 0.40],
[0.30, 0.35, 0.40, 0.45, 0.50],
[0.40, 0.45, 0.50, 0.55, 0.60],
[0.50, 0.55, 0.60, 0.65, 0.70],
[0.60, 0.65, 0.70, 0.75, 0.80],
[0.70, 0.75, 0.80, 0.85, 0.90],
]
regular_mode_grind_2_thresholds_spot = [
[-0.04, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.04, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.04, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.04, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.04, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.04, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.04, -0.08, -0.10, -0.12, -0.14, -0.16],
]
regular_mode_grind_2_profit_threshold_spot = 0.018
regular_mode_grind_3_stakes_spot = [
[0.20, 0.20, 0.20, 0.20, 0.20, 0.20],
[0.30, 0.30, 0.30, 0.30, 0.30, 0.30],
[0.40, 0.40, 0.40, 0.40, 0.40, 0.40],
[0.50, 0.50, 0.50, 0.50, 0.50, 0.50],
[0.60, 0.60, 0.60, 0.60, 0.60, 0.60],
[0.70, 0.70, 0.70, 0.70, 0.70, 0.70],
[0.80, 0.80, 0.80, 0.80, 0.80, 0.80],
]
regular_mode_grind_3_thresholds_spot = [
[-0.03, -0.06, -0.08, -0.10, -0.12, -0.14],
[-0.03, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.03, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.03, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.03, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.03, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.03, -0.08, -0.10, -0.12, -0.14, -0.16],
]
regular_mode_grind_3_profit_threshold_spot = 0.018
regular_mode_derisk_spot = -0.80
Expand Down Expand Up @@ -379,25 +415,37 @@ def version(self) -> str:
[0.20, 0.25, 0.30, 0.35, 0.40],
[0.30, 0.35, 0.40, 0.45, 0.50],
[0.40, 0.45, 0.50, 0.55, 0.60],
[0.50, 0.55, 0.60, 0.65, 0.70],
[0.60, 0.65, 0.70, 0.75, 0.80],
[0.70, 0.75, 0.80, 0.85, 0.90],
]
regular_mode_grind_2_thresholds_futures = [
[-0.04, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.04, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.04, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.04, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.04, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.04, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.04, -0.08, -0.10, -0.12, -0.14, -0.16],
]
regular_mode_grind_2_profit_threshold_futures = 0.018
regular_mode_grind_3_stakes_futures = [
[0.20, 0.20, 0.20, 0.20, 0.20, 0.20],
[0.30, 0.30, 0.30, 0.30, 0.30, 0.30],
[0.40, 0.40, 0.40, 0.40, 0.40, 0.40],
[0.50, 0.50, 0.50, 0.50, 0.50, 0.50],
[0.60, 0.60, 0.60, 0.60, 0.60, 0.60],
[0.70, 0.70, 0.70, 0.70, 0.70, 0.70],
[0.80, 0.80, 0.80, 0.80, 0.80, 0.80],
]
regular_mode_grind_3_thresholds_futures = [
[-0.03, -0.06, -0.08, -0.10, -0.12, -0.14],
[-0.03, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.03, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.03, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.03, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.03, -0.08, -0.10, -0.12, -0.14, -0.16],
[-0.03, -0.08, -0.10, -0.12, -0.14, -0.16],
]
regular_mode_grind_3_profit_threshold_futures = 0.018
regular_mode_derisk_futures = -2.40
Expand Down

0 comments on commit 8f163c2

Please sign in to comment.