Create a simulation to test 1 month of data in 30 mins

This commit is contained in:
2026-03-11 21:33:19 -07:00
parent 9b5ebb4140
commit d5df9d1014
6 changed files with 156 additions and 9 deletions
+15
View File
@@ -1,5 +1,6 @@
@page "/"
@using Controllers.Payment
@using Controllers.ProjectTest
@using Microsoft.Extensions.FileSystemGlobbing.Internal.PathSegments
@rendermode InteractiveServer
@@ -46,6 +47,11 @@
<input placeholder="Stock Symbol [NVDA]" @bind="addStockSymbol" />
<button @onclick="addStock">Add To Tracked Stocks</button>
</div>
<br />
<div>
<button @onclick="RunTest">Run 1Mo Test</button>
<span>@TestResults</span>
</div>
<span>@resultError</span>
</div>
</div>
@@ -195,4 +201,13 @@
string dbPrefix = $"[{userName.ToLower()}]:";
dbDriver.Set(dbPrefix + "watched", JsonConvert.SerializeObject(Session.TrackedStocks) );
}
string TestResults = "";
async Task RunTest(){
D683_Project_Test tests = new D683_Project_Test(aiModule);
float score = await tests.Simulate();
TestResults = score.ToString();
}
}