885e298fb7
[GAP-062]: trend confirm direction fix complete
...
- src/NT8.Strategies/Examples/SimpleORBStrategy.cs: publish side-specific trend confirmation values
- src/NT8.Core/Intelligence/FactorCalculators.cs: score trend confirmation by intent side
- tests/NT8.Core.Tests/Intelligence/OrbConfluenceFactorTests.cs: add long/short symmetry coverage
- SPRINT_BOARD.md: GAP-062 prompted -> implemented
- docs/00-governance/current_status.md: updated GAP-062 status
- docs/00-governance/decisions.md: recorded DEC-20260826-01
- TASK_GAP062_TREND_CONFIRM_DIRECTION_PROMPT.md: committed task prompt
Build: clean | Tests: 569 passing | Dual-deployed: yes, backup 20260826_005308
2026-08-26 00:53:32 -04:00
7e82b2ce5a
[GAP-059]: ORB range telemetry context complete
...
- SimpleORBNT8.cs: source telemetry ORB range from SDK opening range tracker
- SimpleORBNT8DefaultsTests.cs: guard against dead adapter ORB fields and verify SDK source
- OrbConfluenceFactorTests.cs: prove realistic ORB range ticks produce ratio reason
- SPRINT_BOARD.md and decisions.md: record implementation and deploy blocker
Build: clean | Tests: 545 passing; Core 456 passing | Dual-deployed: no - NinjaTrader.exe PID 18800 locked NT8.Core.dll
2026-08-25 10:10:27 -04:00
a005deeabf
[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
2026-08-23 15:20:49 -04:00
80c5f53bb9
[GAP-047]: runtime confluence weights complete
...
- ConfluenceScorer.cs: apply designed factor baseline weights
- ConfluenceScorerTests.cs: cover 5.85 total weight, worked example, and overrides
- TASK_GAP047_PART2_WEIGHT_RUNTIME_PROMPT.md: add accepted runtime prompt
- docs/00-governance: record DEC implementation and fresh-freeze requirement
- SPRINT_BOARD.md: mark GAP-047 Part 2 implemented
Build: clean | Tests: 514 passing; Core 425 passing | Deploy: backup 20260823_135331
2026-08-23 13:55:57 -04:00
22514b31f7
test: add GAP-037 and GAP-039 MaxDailyTrades coverage
2026-08-16 16:58:46 -04:00
e68b138fc6
GAP-032: enforce session daily trade limit
...
- retain accepted-trade count after position-flat events
- reject same-session entries with explicit MaxDailyTrades logging
- verify next-session re-entry and update Gate 3 governance
Build: clean | Tests: 500 passing | Dual-deployed: yes
2026-08-03 08:54:54 -04:00
c9041df36a
Sprint 3: Production Hardening — 9 tasks completed
...
## Summary
Implemented 9 production-hardening tasks across risk, execution, calendar, and governance.
All changes verified: build clean (0 errors), 492 tests passing (404 core + 78 integration + 10 perf).
## Core Changes
### Risk & Portfolio (3 tasks)
- **GAP-019** Portfolio Heat Tier 3.5: Added MaxHeatPct (default 3%) to AdvancedRiskConfig;
ValidatePortfolioHeat() computes TotalOpenRisk + NewTradeRisk / Equity * 100; rejects when exceeded.
- **GAP-003** RiskPerTrade <= MaxTradeRisk Assertion: RiskPerTrade property in RiskConfig; throws
ArgumentException at ValidateOrder() if RiskPerTrade > MaxTradeRisk; 3 unit tests.
- **GAP-005** GetRiskStatus() Live Config: _currentDailyLossLimit field updated from config.DailyLossLimit
on each ValidateOrder(); GetRiskStatus() returns actual value; 3 unit tests.
### Execution & Position Management (3 tasks)
- **TASK-06a** Runner Mode Architecture: RunnerMode enum (Auto/Mode1DualLeg/Mode2RunnerOnly/
Mode3ScalerOnly/Disabled); ResolveRunnerMode() logic; 4-mode SubmitOrderToNT8() behavior.
- **TASK-06b** ATR Dynamic Stop: EnableDynamicStop, AtrPeriod, AtrMultiplier, MinStopTicks, MaxStopTicks;
computes dynStop = clamp(round(ATR/TickSize * Mult), Min, Max); overrides intent.StopTicks.
- **GAP-006** Position-Close Re-arm: OnPositionUpdate() sends clear_trade_taken when flat;
EnableBarBasedRearm parameter gates legacy bar-driven re-arm (default false for live).
### Strategy Intelligence (2 tasks)
- **GAP-004** orbRangeTicks Fix: DailyBarContext.OrbRangeTicks field; computed from actual ORB
high/low / TickSize; passed to Factor 7 (ORBvsATR).
- **GAP-010** Short-Side Regime Filter: EnableShortTrendFilter param; vetoes shorts when
AVWAP slope > 0 (bullish); configurable, default true.
### Calendar & Trailing (2 tasks)
- **GAP-008** CME Holiday Awareness: NEW CmeHolidayCalendar.cs with 9 observed holidays +
Good Friday (Easter calc); EnableCMEHolidayGuard skips ORB window on holidays.
- **GAP-009** ATR Trailing Real ATR: EnableATRTrailing, ATRTrailingPeriod (14), ATRTrailingMultiplier (2.0),
ATRTrailingMinTicks (8), ATRTrailingMaxTicks (60); computes trailTicks from ATR(Close,Period)[0].
## Governance
- SPRINT_BOARD.md, current_status.md, decisions.md (DEC-20260711-01 through -09), NEXT_PROMPT.md updated
- All 9 tasks moved ACTIVE -> COMPLETED; GAP-011 (Gitea CI) now ACTIVE
## Verification
- verify-build.bat: 0 errors, 0 warnings
- Tests: 492 passing (404 core + 78 integration + 10 performance)
## Files
- Modified: 13 source, 3 test, 9 governance
- Deleted: 28 obsolete spec/docs
- Added: 1 new module (NT8.Core.Calendar), governance files
- Dual-deployed to NT8 Custom\Strategies\
## Rollback
Tag: sprint3-production-hardening-complete
To revert: git reset --hard sprint3-production-hardening-complete
2026-07-13 08:38:25 -04:00
498f298975
Add ORB confluence factors (NR4/NR7, gap alignment, breakout volume, prior close) + session file logger
Build and Test / build (push) Has been cancelled
2026-03-19 12:16:39 -04:00
6325c091a0
feat: Complete Phase 4 - Intelligence & Grading
...
Build and Test / build (push) Has been cancelled
Implementation (20 files, ~4,000 lines):
- Confluence Scoring System
* 5-factor trade grading (A+ to F)
* ORB validity, trend alignment, volatility regime
* Time-in-session, execution quality factors
* Weighted score aggregation
* Dynamic factor weighting
- Regime Detection
* Volatility regime classification (Low/Normal/High/Extreme)
* Trend regime detection (Strong/Weak Up/Down, Range)
* Regime transition tracking
* Historical regime analysis
* Performance by regime
- Risk Mode Framework
* ECP (Elevated Confidence) - aggressive sizing
* PCP (Primary Confidence) - normal operation
* DCP (Diminished Confidence) - conservative
* HR (High Risk) - halt trading
* Automatic mode transitions based on performance
* Manual override capability
- Grade-Based Position Sizing
* Dynamic sizing by trade quality
* A+ trades: 1.5x size, A: 1.25x, B: 1.0x, C: 0.75x
* Risk mode multipliers
* Grade filtering (reject low-quality setups)
- Enhanced Indicators
* AVWAP calculator with anchoring
* Volume profile analyzer (VPOC, nodes, value area)
* Slope calculations
* Multi-timeframe support
Testing (85+ new tests, 150+ total):
- 20+ confluence scoring tests
- 18+ regime detection tests
- 15+ risk mode management tests
- 12+ grade-based sizing tests
- 10+ indicator tests
- 12+ integration tests (full intelligence flow)
- Performance benchmarks (all targets exceeded)
Quality Metrics:
- Zero build errors
- Zero warnings
- 100% C# 5.0 compliance
- Thread-safe with proper locking
- Full XML documentation
- No breaking changes to Phase 1-3
Performance (all targets exceeded):
- Confluence scoring: <5ms ✅
- Regime detection: <3ms ✅
- Grade filtering: <1ms ✅
- Risk mode updates: <2ms ✅
- Overall flow: <15ms ✅
Integration:
- Seamless integration with Phase 2-3
- Enhanced SimpleORB strategy with confluence
- Grade-aware position sizing operational
- Risk modes fully functional
- Regime-aware trading active
Phase 4 Status: ✅ COMPLETE
Intelligent Trading Core: ✅ OPERATIONAL
System Capability: 80% feature complete
Next: Phase 5 (Analytics) or Deployment
2026-02-16 16:54:47 -05:00