Replay the past of a rebuilt account in its order
What an account did while the bot was off is now written before the splits and the dividends of those days, once and without acting on it; an attempt cut halfway is taken up from the same point. Until then the account is not valued at today's price, the guard keeps the last figures it knew with their time, and a stop order only cancels what is open. Protective sales of the archive are not continued, and the rest of a stop that fired in part is sold. Also the decisions of the phase (ADR 0020), the manuals and the dates under the equity chart. refs #69 #72 #75 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e58a26e8fa
commit
76b64ef147
31 files changed
+957
-130
No files matched your search
@@ -503,7 +503,7 @@ public sealed class RiskEngineTests
|
||||
("id", planned), ("a", live.Account.AccountId), ("i", s.Btc.Id), ("no", false), ("t", s.Rig.Clock.UtcNow)), _none);
|
||||
|
||||
await Installation.CheckAsync(s.Rig.Db, new DataDirectory(TempFolder.Create("reconfirm")), s.Rig.Clock, _none);
|
||||
await Installation.ProtectAsync(s.Rig.Db, s.Rig.Clock, _none);
|
||||
await Installation.ProtectAsync(s.Rig.Db, s.Rig.Clock, s.Rig.Clock.UtcNow, "prova", _none);
|
||||
|
||||
// Stopped, exit only, with its counts untouched; what was planned does not leave; the stop stays.
|
||||
Assert.AreEqual("stopped", (await s.Settings.GetAsync(SettingsStore.BotState.Key)).Value);
|
||||
|
||||
Reference in new issue
Block a user