feat(dotnet): 파이썬 공식 계산 엔진 C# 포팅 및 .NET 인프라 기반 결함(WBS-10.1) 해결
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 4s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (pull_request) Failing after 4s
Quant Engine CI/CD Pipeline / validate-core (pull_request) Failing after 2m18s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (pull_request) Has been skipped
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 4s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (pull_request) Failing after 4s
Quant Engine CI/CD Pipeline / validate-core (pull_request) Failing after 2m18s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (pull_request) Has been skipped
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using QuantEngine.Core.Domain;
|
||||
|
||||
namespace QuantEngine.Core.Tests;
|
||||
|
||||
public class FormulaEngineTests
|
||||
{
|
||||
[Fact]
|
||||
public void TestTimingDecisionNeutral()
|
||||
{
|
||||
var ctx = new Dictionary<string, object>
|
||||
{
|
||||
{ "entryModeGate", "PASS" },
|
||||
{ "entryMode", "BREAKOUT" },
|
||||
{ "leaderGate", "PASS" },
|
||||
{ "acGate", "CLEAR" },
|
||||
{ "leaderTotal", 4.0 },
|
||||
{ "flowCredit", 0.8 },
|
||||
{ "ma20Slope", 1.0 },
|
||||
{ "disparity", 0.0 },
|
||||
{ "rsi14", 50.0 },
|
||||
{ "avgTradeValue5D", 100.0 },
|
||||
{ "spreadPct", 0.1 },
|
||||
{ "priceStatus", "PRICE_OK" },
|
||||
{ "atr20", 10.0 }
|
||||
};
|
||||
|
||||
var result = FormulaEngine.ComputeTimingDecision(ctx);
|
||||
Assert.NotNull(result);
|
||||
Assert.Equal("BUY_BREAKOUT_PILOT_ONLY", result.Action);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
@@ -18,4 +18,8 @@
|
||||
<Using Include="Xunit" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\QuantEngine.Core\QuantEngine.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user