Skip to content

feat: extend protection lifecycle, China equity reports and community library - #392

Merged
brokermr810 merged 67 commits into
mainfrom
test
Nov 19, 2026
Merged

brokermr810 merged 67 commits into
mainfrom
test

Conversation

@brokermr810

Copy link
Copy Markdown
Collaborator

Summary

  • Add absolute-price protection, point-based trailing and one-shot partial exits to Strategy API V2, with aligned AI authoring guidance and English/Chinese documentation.
  • Correct native-order projection: partial exits and point trailing stay runtime-owned instead of being submitted as full-quantity or percentage native orders. Compatible full-exit protection remains eligible for native placement.
  • Preserve one remaining-position target across deferred backtest fills; prevent duplicate same-bar attempts and duplicate trigger events.
  • Track live protection order references and initial quantities across restarts; reconcile rounded terminal fills with positions and retry rejected/cancelled orders against the original target.
  • Extend China-equity research/report coverage and add the community library (444 indicators, 205 strategies) with contribution instructions.

Verification

  • Linux, network-disabled container: 597 focused strategy, protection, AI/report and sandbox tests passed.
  • Additional execution-race, stop-barrier, live release-gate and protection regression run: 75 passed (overlaps the focused suite).
  • Backend Ruff, structural quality baseline, documentation checks and git diff checks passed.
  • All 649 library Python files passed syntax checks; this pre-push review did not repeat every historical library backtest.
  • Desktop: 725 tests, changed-file lint, locale/encoding checks and production build passed.
  • Mobile: 180 tests and production build passed.
  • DCO verified for every non-merge commit in the PR.

Deployment and limits

No database migration or production-data rewrite. Existing strategies keep full exits by default. Partial exits and point trailing require an online strategy worker and fresh prices; they are not exchange-side outage protection. Tests did not place real exchange/broker orders. Validate the new options in paper/staging before enabling them on live accounts.

Desktop adaptation: OpenByteInc/QuantDinger-Vue@8008e65
Mobile adaptation: OpenByteInc/QuantDinger-Mobile@36a77a4

The test branch retains prior shared history; the diff against main contains this reviewed batch.

tianhe added 30 commits November 1, 2026 17:17
Signed-off-by: TIANHE <[email protected]>

# Conflicts:
#	backend_api_python/app/routes/community.py
tianhe and others added 27 commits November 11, 2026 08:35
Signed-off-by: TIANHE <[email protected]>

# Conflicts:
#	backend_api_python/tests/test_safe_exec.py
#	backend_api_python/tests/test_strategy_runtime_process_isolation.py
@sonarqubecloud

Copy link
Copy Markdown

@brokermr810
brokermr810 merged commit f2f73b9 into main Nov 19, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants