feat(dotnet): migrate core formulas, deploy tools, and blazor admin web app to .NET 10
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Has been cancelled
Quant Engine CI/CD Pipeline / validate-core (pull_request) Has been cancelled
Quant Engine CI/CD Pipeline / validate-ui-and-storage (pull_request) Has been cancelled
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (pull_request) Has been cancelled

This commit is contained in:
2026-06-25 15:52:10 +09:00
parent 9abb8d3bc3
commit 2ba8def9bb
232 changed files with 10825 additions and 65 deletions
@@ -0,0 +1,42 @@
using System;
namespace QuantEngine.Core.Domain
{
public class PullbackTriggerResult
{
public string PullbackEntryVerdict { get; set; } = "ABOVE_PULLBACK_ZONE";
public string PullbackState { get; set; } = "BLOCKED";
public double PullbackEntryTriggerPrice { get; set; }
public double PullbackUpperBand { get; set; }
}
public static class PullbackTriggerCalculator
{
public static PullbackTriggerResult ComputePullbackTrigger(double close, double ma20, double atr20)
{
double triggerPrice = KrxTickNormalizer.NormalizeTick(ma20 - 0.5 * atr20);
double upperBand = ma20 * 1.03;
string verdict;
string state;
if (close <= upperBand)
{
verdict = "PULLBACK_ZONE";
state = "PASS";
}
else
{
verdict = "ABOVE_PULLBACK_ZONE";
state = "BLOCKED";
}
return new PullbackTriggerResult
{
PullbackEntryVerdict = verdict,
PullbackState = state,
PullbackEntryTriggerPrice = triggerPrice,
PullbackUpperBand = KrxTickNormalizer.NormalizeTick(upperBand)
};
}
}
}