CopyTrading Slice 1: Settings-Fundament + detaillierte Erklärungen

Umsetzung des Fable-Plans, Start mit dem risikoarmen Settings-Fundament
(kein Hot-Path/CLOB-Verhalten geändert):

- Alle Copytrading-Settings (alt + neu) haben jetzt [Description]/[DisplayName] ->
  im PropertyGrid als Erklärung sichtbar (Richards Vorgabe). Test erzwingt, dass
  jede einstellbare Option eine Beschreibung trägt.
- ProfitTarget-Default -> 9999 (praktisch deaktiviert); Migration setzt zusätzlich
  bestehende Zeilen per SQL auf 9999 (Entscheidung 2). Take-Profit-LOGIK folgt.
- Neue Account-Settings (noch nicht verdrahtet, für Phase 0.1/1.3/2):
  SellFloorPct (15), MaxSpreadPct (5), MinSellRatioPct (10).
- Neue Master-Trader-Settings: AutoPauseEnabled (Default AN, per Master abschaltbar,
  Entscheidung 3) + MakerEntry (Default aus, Entscheidung 4).
- EF-Migration AddCopytradingBehaviorSettings (neue Spalten + sinnvolle Defaults
  fuer Bestandszeilen) erstellt und auf MySQL angewendet.
- Erklärung dokumentiert einen gefundenen Skalen-Verdacht: PreRedeemLimit wird
  gegen den 0-1-Preis verglichen; Alt-Werte 99.5 triggern nie (-> ggf. 0.995).

Tests: 86 gruen. Build/Smoke gruen.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Richard
2026-07-07 09:44:50 +02:00
co-authored by Claude Opus 4.8
parent 92a88e8be8
commit 38f609ed31
8 changed files with 546 additions and 13 deletions
@@ -86,6 +86,9 @@ namespace PolyTrader.Modules.CopyTrading.Persistence.Ef
e.Property(x => x.perMaxTime24h).HasPrecision(18, 6);
e.Property(x => x.perMaxTime72h).HasPrecision(18, 6);
e.Property(x => x.perMaxTimeNone).HasPrecision(18, 6);
e.Property(x => x.SellFloorPct).HasPrecision(18, 6);
e.Property(x => x.MaxSpreadPct).HasPrecision(18, 6);
e.Property(x => x.MinSellRatioPct).HasPrecision(18, 6);
});
b.Entity<MasterTraderHistoryRecord>(e =>