Fase 11 — Decisioni solo matematiche (#186)
ci / test (postgres) (push) Successful in 7m36s
ci / test (sqlite) (push) Successful in 6m41s
ci / image (push) Successful in 1m49s

News, the economic calendar and earnings dates no longer change any decision (ADR 0023, choices in ADR 0027). The outside rules are measured in the shadow; a switch in the settings turns them back on.

refs #116, refs #117

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #186.
This commit is contained in:
Alby96andClaude Opus 5.5 authored and Alby96 committed 2026-12-04 09:14:11 +01:00
1 parent ed22d1c8b5
commit 93cdf7850d
47 files changed
+1743 -169

No files matched your search

+8 -8
View File
@@ -104,16 +104,16 @@ public sealed class NewsScreenTests
var page = await server.TextAsync("/notizie");
foreach (var text in new[]
{
"312 notizie lette nelle ultime 24 ore, 2 con un effetto in corso.", "Con effetto, 2", "Sulle tue posizioni, 9", "Tutte, 312",
"Oggi 06:10, da CoinDesk", "Cosa ho fatto:</strong> per 24 ore non aumento la posizione su SOL. Lo stop resta dov'è.",
"Neutra, evento in arrivo", "niente nuovi acquisti di mean reversion su JPM fino a martedì. La posizione di momentum resta.",
"312 notizie lette nelle ultime 24 ore, 2 su cui una regola avrebbe agito.", "Con una regola, 2", "Archivio: le notizie non cambiano nessuna decisione.", "Sulle tue posizioni, 9", "Tutte, 312",
"Oggi 06:10, da CoinDesk", "Cosa avrebbe fatto la regola:</strong> avrebbe fermato per 24 ore gli aumenti della posizione su SOL/EUR. Solo registrato.",
"Neutra, evento in arrivo", "con le regole attive niente nuovi acquisti di mean reversion su JPM prima dei conti. Solo registrato.",
"Mercato USA", "Una sola fonte", "Negativa, non confermata", "Leggermente positiva", "Importanza 3 su 5", "Importanza 2 su 5",
"niente, perché nessun'altra fonte la riportava. Ricontrollata alle 18:20: rientrata.", "Mostra le altre 3",
"niente. Riguarda il mercato nel suo insieme: le restrizioni valgono per un singolo strumento.", "Mostra le altre 3",
"Crypto: paura o avidità", "su 100, paura", "17,8", "calmo", "+0,006%", "nella norma",
"Oggi, 16:00", "Fiducia dei consumatori USA", "Impatto medio: nessun blocco",
"Martedì 13 ottobre, prima dell'apertura", "Riguarda JPM: niente mean reversion fino a martedì",
"Mercoledì 14 ottobre, 14:30", "Impatto alto: nessun nuovo ingresso dalle 14:00 alle 15:00",
"Mercoledì 28 ottobre, 19:00", "Impatto alto: nessun nuovo ingresso dalle 18:30 alle 20:00",
"Martedì 13 ottobre, prima dell'apertura", "Riguarda JPM: con le regole attive niente mean reversion fino a martedì. Solo registrato.",
"Mercoledì 14 ottobre, 14:30", "Impatto alto: con le regole attive nessun nuovo ingresso dalle 14:00 alle 15:00. Solo registrato.",
"Mercoledì 28 ottobre, 19:00", "Impatto alto: con le regole attive nessun nuovo ingresso dalle 18:30 alle 20:00. Solo registrato.",
"Alpaca News", "in tempo reale", "14 testate e banche centrali", "Comunicati alla SEC", "aggiornato alle 08:00",
"oggi è costato 0,04 € su un tetto di 0,50 €",
})
@@ -156,7 +156,7 @@ public sealed class NewsScreenTests
// A new installation without market data: the screen says what is missing.
var empty = await server.TextAsync("/notizie");
StringAssert.Contains(empty, "0 notizie lette nelle ultime 24 ore, nessuna con un effetto in corso.");
StringAssert.Contains(empty, "0 notizie lette nelle ultime 24 ore, nessuna su cui una regola avrebbe agito.");
StringAssert.Contains(empty, "Non leggo ancora notizie");
var store = new NewsStore(services.Db, server.Host.Clock);