Put the candidate strategies in observation without capital
Relative momentum among coins and all-time highs on stocks are now in the code as candidates: they collect signals, have no share, no capital and no order path, and every way forward refuses them. The crypto one ran the protocol once and failed it (DSR 0.744, worst fall 35.3%), so it is archived and decides nothing; the stock one waits for the Alpaca history. refs #74 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9d1a4f2f69
commit
fb0ab223a5
33 files changed
+1747
-82
No files matched your search
@@ -23,12 +23,14 @@
|
||||
@foreach (var (stage, i) in new[] { StrategyStages.Observation, StrategyStages.Simulation, StrategyStages.Reduced, StrategyStages.Real }.Select((s, i) => (s, i)))
|
||||
{
|
||||
var here = v.Cards.Where(x => x.Stage.Stage == stage).ToList();
|
||||
// The candidates count among the observed ones, the discarded ones no more (mockup 04).
|
||||
var count = here.Count + (stage == StrategyStages.Observation ? v.Candidates.Count(x => !x.Archived) : 0);
|
||||
<li class="@(here.Count > 0 ? "here" : null)">
|
||||
<span class="step">@(i + 1)</span>
|
||||
<strong>@Capital(StrategyStages.Label(stage))</strong>
|
||||
<p>@StageText(stage)</p>
|
||||
<p class="stage-count">
|
||||
@if (here.Count == 0)
|
||||
@if (count == 0)
|
||||
{
|
||||
<span class="muted">Nessuna strategia</span>
|
||||
}
|
||||
@@ -38,7 +40,7 @@
|
||||
{
|
||||
<span class="swatch round" style="background: @x.Color"></span>
|
||||
}
|
||||
<strong>@(here.Count == 1 ? "1 strategia" : $"{here.Count} strategie")</strong>
|
||||
<strong>@(count == 1 ? "1 strategia" : $"{count} strategie")</strong>
|
||||
}
|
||||
</p>
|
||||
</li>
|
||||
@@ -189,9 +191,9 @@
|
||||
<h2 id="osservazione">In osservazione</h2>
|
||||
<a href="/laboratorio">Prova una nuova strategia nel laboratorio</a>
|
||||
</div>
|
||||
@if (watching.Count == 0)
|
||||
@if (watching.Count == 0 && v.Candidates.Count == 0)
|
||||
{
|
||||
<p class="note">Nessuna strategia di base in osservazione.</p>
|
||||
<p class="note">Nessuna strategia in osservazione.</p>
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -209,7 +211,26 @@
|
||||
}
|
||||
else if (!passed)
|
||||
{
|
||||
<span class="attention nowrap"><Icon Name="alert" Size="16" />@(s.Stage.Qualification?.Verdict.Contains("Alpaca", StringComparison.Ordinal) == true ? "In attesa dei dati" : "Non supera i test")</span>
|
||||
<span class="attention nowrap"><Icon Name="alert" Size="16" />@(StrategiesView.IsWaiting(s.Stage) ? "In attesa dei dati" : "Non supera i test")</span>
|
||||
}
|
||||
</dd>
|
||||
}
|
||||
@foreach (var s in v.Candidates)
|
||||
{
|
||||
<dt>@s.Name</dt>
|
||||
<dd>
|
||||
<span>@s.Text@if (!Shell.IsDemo && StrategiesView.ReportOf(s.Stage) is { } report) {<text> Rapporto: </text><code>@report</code>}</span>
|
||||
@if (s.Archived)
|
||||
{
|
||||
<span class="attention nowrap"><Icon Name="alert" Size="16" />Non supera i test</span>
|
||||
}
|
||||
else if (s.Waiting)
|
||||
{
|
||||
<span class="attention nowrap"><Icon Name="alert" Size="16" />In attesa dei dati</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="nowrap clock"><Icon Name="clock" Size="16" />@(Math.Min(s.Days, StageBook.ObservationDays)) giorni su @StageBook.ObservationDays</span>
|
||||
}
|
||||
</dd>
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user