[GAP-049]: telemetry direction context complete
- SimpleORBNT8.cs: clone daily context for STATE telemetry and set direction/session-open fields - SimpleORBNT8DefaultsTests.cs: add source tests for telemetry clone and orb_range_ticks metadata - OrbConfluenceFactorTests.cs: prove sell/down-gap alignment scores correctly - SPRINT_BOARD.md and decisions.md: record implementation, P1-E finding, verification, and deploy evidence Build: clean | Tests: 538 passing; Core 449 passing | Deploy: backup 20260823_151931
This commit is contained in:
@@ -124,6 +124,24 @@ namespace NT8.Core.Tests.Intelligence
|
||||
Assert.AreEqual(1.0, result.Score, 0.000001);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void GapDirection_LargeDownGapForSell_ScoresOneAndAligns()
|
||||
{
|
||||
var calc = new GapDirectionAlignmentCalculator(new BasicLogger("test"));
|
||||
var intent = CreateIntent();
|
||||
var daily = CreateDailyContext(new double[] { 8, 8, 8, 8, 8, 8, 8 });
|
||||
daily.Closes[daily.Count - 2] = 30096.0;
|
||||
daily.TodayOpen = 30077.0;
|
||||
daily.TradeDirection = -1;
|
||||
intent.Metadata["daily_bars"] = daily;
|
||||
|
||||
var result = calc.Calculate(intent, CreateContext(), CreateBar());
|
||||
|
||||
Assert.AreEqual(1.0, result.Score, 0.000001);
|
||||
Assert.IsTrue(result.Reason.Contains("aligns with trade"), result.Reason);
|
||||
Assert.IsFalse(result.Reason.Contains("opposes trade"), result.Reason);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void GapDirection_LargeOpposingGap_ScoresVeryLow()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user