Create a simulation to test 1 month of data in 30 mins
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user