Skip to content

Commit db46465

Browse files
committed
[AI] Fix offset
1 parent 6ec178f commit db46465

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

octobot_script/ai/environments.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ async def basic_trade_function(ctx, action):
4141
ctx,
4242
"buy",
4343
amount=f"{1 if action == 3 else 10 if action == 4 else 30}%",
44-
offset=f"-{1 if action == 3 else 10 if action == 4 else 30}%",
44+
offset=f"-{1 if action == 3 else 2 if action == 4 else 3}%",
4545
))
4646
elif action in [6, 7, 8]:
4747
created_orders.append(await obs.limit(
4848
ctx,
4949
"sell",
5050
amount=f"{1 if action == 6 else 10 if action == 7 else 30}%",
51-
offset=f"{1 if action == 6 else 10 if action == 7 else 30}%",
51+
offset=f"{1 if action == 6 else 2 if action == 7 else 3}%",
5252
))
5353
else:
5454
# Nothing for now

0 commit comments

Comments
 (0)