Alby96andClaude Opus 5.5 a8defde572 Fix the review findings of the basket engine, command and report
The independent review of Phase 14 found rules the engine applied
differently from the decisions, numbers the report labelled wrongly and
a command that left a trial "running" when interrupted.

Engine:
- The pause after the 9% account stop is read at the decision moment
  (the bar's close), like every other gate: on daily bars it no longer
  blocks one day past the server date change.
- In a one-pair basket, a level closed by the venue's mandatory stop
  closes the other levels at the next execution with their own reason,
  closed_with_stop (counted and labelled in the report); the basket's
  exit stays mandatory_stop, and a two-leg basket keeps orphan_leg.
- The cap of two entries per currency applies to new baskets only,
  never to the averagings of an open basket, and every leg is valued
  at the current mid: a Prudente long basket "come dal vivo" now makes
  its three averagings and Fedele writes no note on them.
- The surrogate of the control chains on the mid when the source has
  an ask, so each mid change keeps its size and the spread stays
  around the mid instead of moving the mid by a spread at each change
  of sign.
- The financing already charged on positions still open at the end is
  part of the run's fees (BacktestRun.AccruedFees, zero for the daily
  engine, kept in stored unit outcomes).

Report: the fee row says what it holds (commission and financing, the
spread is in the prices) and the cost-stress text matches what the
multiplier scales; baskets still open at the end are labelled as such
and left out of the share closed at the target; refusal labels say
what the engine checks; the ECB-price and cost limitations are no
longer printed twice; every count has the Italian thousands separator.

Command: Ctrl+C or SIGTERM cancels the run; the trial is recorded as
failed with "Prova interrotta prima della fine: rilancia «anubis
backtest baskets»." and the command exits 1; a trial that cannot start
is failed instead of thrown, and an unexpected error ends with an
Italian line, never a stack trace. The laboratory fails a leftover
basket trial with an accurate message instead of "Strategia non più
disponibile".

The Table 6.5 test comment no longer claims each price is the only one
that fits the row. The real report is regenerated on the same data and
database as the first run, which now counts as a prior trial.

refs #127 #129 #131

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 19:26:24 +01:00

Anubis

Bot di trading personale: azioni USA su Alpaca e crypto spot su OKX Europe, senza leva e senza vendite allo scoperto. Parte in simulazione e passa ai soldi veri solo quando ogni strategia ha superato requisiti misurati e l'utente lo conferma di persona. Mostra in un'interfaccia web in italiano cosa sta facendo, come stanno i conti e se sta guadagnando o perdendo.

Si installa in un solo modo: un container Docker, pensato per un server Unraid sempre acceso (ADR 0022). Immagine: gitea.encke-hake.ts.net/balbosoft/anubis (sezione Packages del repository).

Database a scelta: PostgreSQL oppure SQLite. Scritto in C# su .NET 10, con interfaccia Blazor: sul server non c'è niente da installare oltre a Docker (ADR 0003).

Logo di Anubis

Nell'antico Egitto Anubis, il dio con la testa di sciacallo, pesava il cuore dei defunti contro la piuma di Maat, la verità e l'equilibrio, e custodiva le tombe. Il bot fa lo stesso con i soldi: pesa ogni operazione contro il rischio prima di farla e protegge il capitale. Il logo è quella bilancia, con il cuore e la piuma in equilibrio (ADR 0005).

Stato: in simulazione, pronto da installare in Docker. Il piano è nelle milestone del repository.

Panoramica

Documentazione

Documento Contenuto
docs/MANUALE.md Installare, usare, salvare, ripristinare
docs/RUNBOOK.md Cosa fare negli incidenti
docs/GO-LIVE.md Cosa deve essere vero prima dei soldi veri (questa versione non li usa)
docs/SPEC.md Specifica completa: architettura, strategie, rischio, interfaccia, piano a fasi
docs/ROADMAP.md Le fasi con i lavori su Gitea e i criteri di accettazione
docs/STATE.md A che punto siamo e cosa serve dall'utente
docs/SVILUPPO.md Come si lavora: flusso su Gitea, regole, prove
docs/adr/ Decisioni prese: nome (0001), Gitea (0002), linguaggio C# (0003), componenti esterni (0004), logo (0005); la nuova rotta del 2 dicembre 2026 negli ADR 0021–0026
docs/design/ Schermate di riferimento e logo
deploy/unraid/anubis.xml Template Docker per Unraid

Schermate di riferimento

Panoramica Conti e posizioni
Operazioni Strategie
Notizie e mercato Apprendimento
Rischio Diario e sistema
Panoramica su telefono

I numeri e le notizie negli screen sono dati di esempio (SPEC appendice F).

Avvertenza

Nessun sistema garantisce un profitto e la maggior parte dei trader privati perde denaro. Anubis punta sulla disciplina: regole semplici con evidenza pubblicata, costi realistici, limiti di rischio rigidi, nessun passaggio ai soldi veri senza prove.

S
Description
Bot di trading avanzato
Readme
20 MiB
0 Stars 1 Watchers 0 Forks
Languages
C# 92.1%
HTML 6.4%
CSS 1.2%
Shell 0.1%