Skip to content

Commit 614d8bd

Browse files
Merge pull request #3 from bitcoin-balancer/1.0.22
Align default position decrease schedule with Eager Scalper strategy
2 parents 277f91a + fa5b17c commit 614d8bd

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "api",
33
"description": "The api is a RESTful service that seamlessly integrates with your configured exchange(s), feeds real-time market data to indicators, and executes your defined trading strategy.",
44
"private": false,
5-
"version": "1.0.21",
5+
"version": "1.0.22",
66
"type": "module",
77
"main": "dist/index.js",
88
"scripts": {

src/modules/position/strategy/utils.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ const buildDefaultConfig = (): IStrategy => ({
1616
increaseIdleDuration: 48,
1717
increaseIdleMode: 'incremental',
1818
decreaseLevels: [
19-
{ gainRequirement: 0.5, percentage: 5.0, frequency: 240 },
20-
{ gainRequirement: 1.5, percentage: 10.0, frequency: 120 },
21-
{ gainRequirement: 2.5, percentage: 17.5, frequency: 80 },
22-
{ gainRequirement: 3.5, percentage: 25.0, frequency: 30 },
23-
{ gainRequirement: 5.0, percentage: 35.0, frequency: 10 },
19+
{ gainRequirement: 1.5, percentage: 5.0, frequency: 240 },
20+
{ gainRequirement: 3.5, percentage: 10.0, frequency: 120 },
21+
{ gainRequirement: 5.5, percentage: 17.5, frequency: 80 },
22+
{ gainRequirement: 7.5, percentage: 25.0, frequency: 30 },
23+
{ gainRequirement: 10.0, percentage: 35.0, frequency: 10 },
2424
],
2525
});
2626

0 commit comments

Comments
 (0)