@senpi/runtime 3.0.322 → 3.0.323
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guide-commands.d.ts","sourceRoot":"","sources":["../../src/cli/guide-commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"guide-commands.d.ts","sourceRoot":"","sources":["../../src/cli/guide-commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAiiBH,eAAO,MAAM,eAAe,QAqepB,CAAC;AAIT,kFAAkF;AAClF,UAAU,gBAAgB;IACxB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAC;IACvD,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,CAAC;IAC5C,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAC;IAC9D,MAAM,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,gBAAgB,CAAC;CACxF;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,gBAAgB,EACvB,OAAO,EAAE,MAAM,GACd,IAAI,CAiDN"}
|
|
@@ -247,6 +247,9 @@ The DSL monitors open positions on a configurable interval (idling at 180s when
|
|
|
247
247
|
the strategy is flat; an externally-opened position can take that long to be
|
|
248
248
|
adopted) and closes them
|
|
249
249
|
when price breaches the computed floor or when preset time cuts fire.
|
|
250
|
+
Hard stop: every position gets an exchange stop-loss at -max_loss_pct ROE from entry,
|
|
251
|
+
in both phases and whatever phase1.enabled says, until a tier lifts the floor above it.
|
|
252
|
+
phase1.enabled: false turns off the trailing only; it never removes that stop.
|
|
250
253
|
Phase 1: max_loss absolute floor + phase1 retrace from high-water. Consecutive
|
|
251
254
|
breach counting applies in BOTH phases. Phase 2: tier floors from lock_hw_pct
|
|
252
255
|
(% of current high-water ROE); phase 2 begins when price crosses the first
|
|
@@ -278,8 +281,9 @@ Phase 1 — Fixed floor + high-water trailing
|
|
|
278
281
|
retrace_threshold (ROE %) from high-water.
|
|
279
282
|
|
|
280
283
|
phase1:
|
|
281
|
-
# enabled: false # optional; default true — false =
|
|
282
|
-
max_loss_pct
|
|
284
|
+
# enabled: false # optional; default true — false = no retrace trailing; the position starts in
|
|
285
|
+
# phase 2 and max_loss_pct below is STILL its exchange stop-loss from entry
|
|
286
|
+
max_loss_pct: 3.0 # e.g. 3% max loss at 1×; the hard stop whether or not phase1 is enabled
|
|
283
287
|
retrace_threshold: 10 # ROE % retrace from HWM in phase 1 (required when enabled)
|
|
284
288
|
consecutive_breaches_required: 3 # ticks below floor before exit, both phases (required when enabled)
|
|
285
289
|
# Exchange SL in Phase 1: max_loss absolute floor only; tighter engine floors use closePosition.
|
|
@@ -288,6 +292,8 @@ Phase 1 — Fixed floor + high-water trailing
|
|
|
288
292
|
|
|
289
293
|
──────────────────────────────────────────────────────────────────────────────
|
|
290
294
|
Phase 2 — Tier floors (no per-tier breaches or retrace YAML)
|
|
295
|
+
Before the first tier, the floor is the max_loss_pct absolute floor (a position with
|
|
296
|
+
phase1.enabled: false starts here, protected by that stop from entry).
|
|
291
297
|
Floor = tier floor from lock_hw_pct once the tier is active. Exchange SL tracks
|
|
292
298
|
the full effective floor (editPosition on tier/phase and moves), and that stop is
|
|
293
299
|
normally what exits. When price breaches the floor for consecutive_breaches_required
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guide-commands.js","sourceRoot":"","sources":["../../src/cli/guide-commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,aAAa,GACj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CAAC,uCAAuC,CAAC;SACpD,MAAM,CAAC,GAAG,EAAE;QACX,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;IAEJ,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAsB;SAC1C,WAAW,CAAC,kCAAkC,CAAC;SAC/C,MAAM,CAAC,GAAG,EAAE;QACX,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEJ,KAAK,CAAC,OAAO,CAAC,SAAS,CAAsB;SAC3C,WAAW,CAAC,kCAAkC,CAAC;SAC/C,MAAM,CAAC,GAAG,EAAE;QACX,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,OAAO,KAAK,aAAa,IAAI,CAAC,CAAC;IAC5E,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -148,9 +148,9 @@
|
|
|
148
148
|
"dist/cli/deploy-render.js": "208aca9491007dfe8c634e1a09f8bd69c7b5ef6e0fe429c47004bdbfcaa618ed",
|
|
149
149
|
"dist/cli/deploy-render.js.map": "8701f14446917185a3c75b97ee3cd865ec162eeda235b4861d2a82fa0b71963e",
|
|
150
150
|
"dist/cli/guide-commands.d.ts": "7887650a814ec66e4f2d21439482d20de9ee1a5372f5a56ca8c32f45717b2a03",
|
|
151
|
-
"dist/cli/guide-commands.d.ts.map": "
|
|
152
|
-
"dist/cli/guide-commands.js": "
|
|
153
|
-
"dist/cli/guide-commands.js.map": "
|
|
151
|
+
"dist/cli/guide-commands.d.ts.map": "366d3ee35c383c52060e39c10c97c9d08562ffaf1c8e20cac6a8836454ce2841",
|
|
152
|
+
"dist/cli/guide-commands.js": "9d81b349cdda5bf0102dd5db78b588fad63abf3ef14fca57ba979ccf6b37287f",
|
|
153
|
+
"dist/cli/guide-commands.js.map": "1927afd51eec35f267ca6956135a606eaafcadda44f7987916b756c93a23bb77",
|
|
154
154
|
"dist/cli/quant-command.d.ts": "3f282a32f12498e7f6b7f5b3f6001c0066cfe2d0258cbb11a82e24302d327608",
|
|
155
155
|
"dist/cli/quant-command.d.ts.map": "9b0d3a878e76568ae870a761720542c0c6c13c30e31e5b731451081701f87ed8",
|
|
156
156
|
"dist/cli/quant-command.js": "6b951ddeb9bdac0afe00f7d63d75688fb091cbdcfd4eeb1b517d4fb9795b88f1",
|
|
@@ -1854,6 +1854,6 @@
|
|
|
1854
1854
|
"dist/widgets/widgets/quant-desk-recommendations.d.ts.map": "410c41d3d2b37a1d8329aa888424f920424cc3afa1abd6acc64989093cbba24a",
|
|
1855
1855
|
"dist/widgets/widgets/quant-desk-recommendations.js": "91018c50913ace64ca1941c22e3de17549130a3370132b7f2ccc0477ee6d2aa0",
|
|
1856
1856
|
"dist/widgets/widgets/quant-desk-recommendations.js.map": "80b24b605271cff9acd56800f7c098c2335136e5362055c349e622b8751714c2",
|
|
1857
|
-
"openclaw.plugin.json": "
|
|
1857
|
+
"openclaw.plugin.json": "76f2722f215be38e9490dd438aee58c12f2ec01c70848a4626fbf76c857bd049"
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "runtime",
|
|
3
3
|
"name": "Senpi Runtime",
|
|
4
4
|
"description": "Senpi runtime plugin for OpenClaw. Orchestrates scanners, LLM-based trade decisions, and a DSL trailing stop-loss exit engine.",
|
|
5
|
-
"version": "3.0.
|
|
5
|
+
"version": "3.0.323",
|
|
6
6
|
"commandAliases": [
|
|
7
7
|
{
|
|
8
8
|
"name": "senpi"
|