@senpi/trading-recipe 1.0.44 → 1.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
# Use as a copy-paste reference when tuning exit behavior.
|
|
3
3
|
name: dsl-showcase
|
|
4
4
|
version: 1.0.0
|
|
5
|
-
description:
|
|
6
|
-
|
|
5
|
+
description: >
|
|
6
|
+
Annotated DSL exit config reference.
|
|
7
|
+
Onchain position tracker — monitors the strategy wallet on Hyperliquid
|
|
8
|
+
for position lifecycle events (open, close, edit, flip) and wires them
|
|
9
|
+
into the DSL exit engine for automated trailing stop-loss management.
|
|
10
|
+
|
|
7
11
|
strategies:
|
|
8
12
|
ref:
|
|
9
13
|
wallet: "${WALLET_ADDRESS}"
|
|
@@ -13,21 +17,18 @@ strategies:
|
|
|
13
17
|
trading_risk: conservative
|
|
14
18
|
enabled: true
|
|
15
19
|
|
|
20
|
+
# ── SCANNERS ──
|
|
16
21
|
scanners:
|
|
17
|
-
- name:
|
|
18
|
-
type:
|
|
19
|
-
interval:
|
|
20
|
-
config:
|
|
21
|
-
topN: 20
|
|
22
|
-
minRankJump: 5
|
|
23
|
-
minScansBeforeSignals: 2
|
|
22
|
+
- name: position_tracker
|
|
23
|
+
type: position_tracker
|
|
24
|
+
interval: 10s
|
|
24
25
|
|
|
26
|
+
# ── ACTIONS ──
|
|
25
27
|
actions:
|
|
26
|
-
- name:
|
|
27
|
-
action_type:
|
|
28
|
-
decision_mode:
|
|
29
|
-
scanners: [
|
|
30
|
-
min_confidence: 0
|
|
28
|
+
- name: position_tracker_action
|
|
29
|
+
action_type: POSITION_TRACKER
|
|
30
|
+
decision_mode: rule
|
|
31
|
+
scanners: [position_tracker]
|
|
31
32
|
|
|
32
33
|
exit:
|
|
33
34
|
engine: dsl
|
package/openclaw.plugin.json
CHANGED