Repository navigation
Project Tracker
Open tasks and known bugs for FXNews. Numbers are stable task ids from the production audit started 2026-09-13; last updated 2026-09-13.
Status values: Open, Start, Progress, Test, Audit, Done, Deferred. A task is Done only after it compiled cleanly (tools/build-macos.sh), passed the census (tools/census.py), passed the headless self-test (tools/selftest-macos.sh) and was re-read against its original finding.
Progress: 120 of 120 done (Done 120).
Line numbers refer to FXNews.mq5 at commit 9069ca3 (version 2.3) unless stated.
| # | Status | Task |
|---|---|---|
| 1 | Done | tools/census.py: automated dead-code / placeholder census (Python 3.14). |
| 2 | Done | tools/selftest-macos.sh + tools/mql5/FXNewsSelfTest.mq5: headless self-test harness. |
| 3 | Done | build-macos.sh: MetaEditor timeout, mktemp -d (leaked temp file), wine exit status, cd failure handling, log-path space guard, iconv partial fallback, header comments (usage, exit codes). |
| 4 | Done | build-macos.sh: opt-in --install flag copying FXNews.ex5 to MQL5/Indicators/FXNews/. |
| 5 | Done | Wiki Project-Tracker page created and kept current. |
| # | Status | Task |
|---|---|---|
| 6 | Done | 4774 CalendarValueHistory returns bool assigned to int count -> out-of-range read on empty array; available must mean "call succeeded", relevant_event_nearby means "event in window"; skip non-DATETIME time_mode events. |
| 7 | Done | 6234 CopyTicks(from,count) returns the oldest ticks -> newest cut during bursts; request last N and filter by from_msc; cap MinCopyTicksForGoodQuality <= MAX_COPY_TICKS in ValidateInputs. |
| 8 | Done | 3393/3553 rolling range box absorbs the breakout bar at trigger-bar rollover -> self-invalidation; freeze the box while an event is live. |
| 9 | Done | 1327 Autotune flips to LIVE (report wiped, alerts may fire); remove; both historical modes stay parked. |
| 10 | Done | 614-624 run-state globals never reset in OnInit (self-test/backtest never re-run after parameter change, stale history, alert windows); add ResetRuntimeState(). |
| 11 | Done | 4919/3941 CONFIRM_BAR_CLOSE cannot confirm on TF > M5 (300 s age caps zero the candidate); age caps must be scaled to the scan timeframe for candidates. |
| 12 | Done | 5174/5207 ActivateSignal on an already-active signal fails IsConfirmedSignal in BAR_CLOSE (candidate_bar_time cleared) -> no strong-upgrade alerts, no history update, flip unreachable; HYBRID hold clause trivially true when candidate_start_time==0. |
| 13 | Done | 5083/5095/3942 hard-coded 300 s override SignalTTLSeconds and make ExpireOldSignals a no-op; derive from SignalTTLSeconds. |
| 14 | Done | 5091 grace period before ending a decayed signal uses DisplayUpdateSeconds; dedicated constant. |
| 15 | Done | 4286 currency-flow directional_edge includes the pair's own move (self-confirmation); leave-one-out strength per pair. |
| 16 | Done | 4639 CalculateBasketAgreement counts same-symbol sibling profiles as peers; exclude same symbol. |
| 17 | Done | 3145/6195 dead-feed detection: quote age from TimeCurrent (frozen when no ticks) and tick gap reset to 0 on scans without a new tick; use TimeTradeServer + TERMINAL_CONNECTED and retain the last inter-arrival gap. |
| 18 | Done | 5725/5836/5872 recent-signal list: force a visible refresh when an entry is inserted (row can be dropped before rendering), define persistence semantics (no removal/re-insert flicker; dwell protects only from eviction), stable newest-first invariant. |
| 19 | Done | 180/5775 list threshold 75 hard-coded vs MinDisplayConfidence/StrongAlertConfidence; new input RecentListMinScore (default 75) validated >= MinDisplayConfidence; documented. |
| 20 | Done | 4006/4072 execution: median_spread fallback = spread (ratio 1.0, gates inert), spread_z=0 and tick_gap=0 when unmeasured -> availability flags, exclude from blend and gates. |
| # | Status | Task |
|---|---|---|
| 21 | Done | 3870/4188 impulse (and breakout) unmeasured but weighted at 0 in the normaliser; add measured flags and gate weights. |
| 22 | Done | 6212-6268 tick_sample_quality_score constants (0.50/0.65/0.25/0.15) multiplied into impulse; tick_quality_available flag, apply multiplier only when measured. |
| 23 | Done | 6405/6420 TickRateZ -1.0 sentinel and TickVolumeRobustZ 0.0 -> available out-params; exclude from blend and from unsupported_impulse_cap. |
| 24 | Done | 3286/3306/4325 atr_m5==0 -> m5_move_atr 0 -> SmoothStep 0.5 neutral constant; has_m5_move/has_m15_move flags; also use closed bars (forming-bar sawtooth). |
| 25 | Done | 6469 ReferenceMid falls back to the oldest snapshot -> understated z, ContinuationScore always "measured"; return unavailable. |
| 26 | Done | 4126/3919 candle metrics with candle_range ~ 0 (fresh bar) -> weak_body_cap on every new bar; treat as unmeasured below 0.05 ATR. |
| 27 | Done | 4267/4282/4351/4632 neutral sentinels 0.50 / 0.65 stored for unavailable basket/calendar; store 0.0. |
| 28 | Done | 4009 SafeDiv(spread, median, 1.0) neutral fallback; explicit guard. |
| 29 | Done | 1862 historical spread==0 imputed as 1.0 pip; count and skip. |
| # | Status | Task |
|---|---|---|
| 30 | Done | 3941 age>300 sets capped=0 without reason -> ApplyScoreCap "expired_event_cap"; 5066 flip test compares capped vs uncapped directions -> compare consistently. |
| 31 | Done | 4325/3926 mtf_reject_cap threshold (m5_context<=0.20) does not correspond to M5RejectAtr; derive the cap from the raw move. |
| 32 | Done | exhaustion/fakeout/conflict penalties applied in blend and as caps (and block); decide one mechanism per penalty, document. |
| 33 | Done | 3958 elite cap hold term vetoes 90+ when technical engine off; gate on engine; flow term unreachable. |
| 34 | Done | 4335 regime.rollover_penalty always 0 (execution gate blocks first); remove field and term. |
| 35 | Done | 4203 acceleration not ATR-normalised; also plain divisions with constants. |
| 36 | Done | 3849 BLOCK_NO_MOVEMENT_DATA misused for "no setup" -> BLOCK_NO_SETUP; 3857 spread-only breakout reuses BLOCK_BAD_SPREAD -> BLOCK_SPREAD_ONLY_BREAKOUT; BlockStageRank updated. |
| 37 | Done | 5155/5773 rounding inconsistency between display gating and printed percentage. |
| 38 | Done | tags/reasons: IMP+/BRK+ gated on engine pass; FLOW? only when engine enabled (FLOW_OFF otherwise); tick tags copied before impulse early-return; "strong impulse" text threshold = g_min_impulse_z; one ENGINE_CONFIRM_THRESHOLD constant; human reason for blocked rows. |
| 39 | Done | 4462 BuildReasonSummary lists disabled engines; exclude. |
| 40 | Done | 6363 SpeedRobustZ duplicates RobustZ with different zero-MAD behaviour; unify with floor parameter; named MAD scale constant; self-test. |
| 41 | Done | 6353/6369 speed z baseline built from per-interval rates but measured over 5/10/30 s windows; per-window baselines. |
| 42 | Done | 3476/6429 forming-bar tick volume biases baseline; time-normalise; rename TickVolumeRobustZ (not a z). |
| 43 | Done | 6318 TickRateFromSnapshots counts snapshots (capped at 1/ScanIntervalSeconds), denominator = observed span; use true tick rate from CopyTicks when available, else seconds_back. |
| # | Status | Task |
|---|---|---|
| 44 | Done | 5116 candidate direction switch applies no failed cooldown to the abandoned direction. |
| 45 | Done | 5077/5212 every ACTIVE termination gets ValidSignalCooldownSeconds; use failed cooldown for early collapse / context failure. |
| 46 | Done | 5084/5096 SignalExpiredByContext evaluated twice; PickBestDirection computed when ignored. |
| 47 | Done | 5191/5315 failed SendOptionalAlert retried every scan for strong signals, dropped for normal ones; backoff via last_alert_sent_time, count attempt. |
| 48 | Done | 214/5296 MAX_ALERTS_PER_MINUTE 12 > terminal limit (10/min, 2/s); sliding window; cap per scan. |
| 49 | Done | 5189/5315 pending_alert_score stale on delayed release; pending_strong_upgrade not downgraded when score drops. |
| 50 | Done | 5252 PlaySound return ignored. |
| 51 | Done | 4954/5033 group membership flaps per scan -> leader gating unstable; bind group id at activation with hysteresis; DominantCurrencyFlow picks larger absolute component (wrong sign semantics), fallback when flow unavailable; drop redundant dominant_currency_flow field. |
| 52 | Done | 4954 CanDispatchAlert unreachable check; 5301 unreachable "ended before alert" branch; 5178 constant local; 4766 alias with stale comment. |
| # | Status | Task |
|---|---|---|
| 53 | Done | 725 TimeframesToScan length cap 64 rejects the PERIOD_ form the parser supports. |
| 54 | Done | 775 MinHoldSecondsForHighScore=0 degrades HYBRID to LIVE_TICK; require >= 1. |
| 55 | Done | 830 rollover start==end silently disables the window; reject or document explicitly. |
| 56 | Done | 823 calendar validation message wrong for the lookahead/cap cases. |
| 57 | Done | 2609 unknown timeframe token silently skipped while a long symbol aborts; make it INIT_PARAMETERS_INCORRECT and list supported tokens. |
| 58 | Done | 2607 literal 9 -> MAX_SCAN_TIMEFRAMES; 183 SESSION_COUNT tied to the enum. |
| 59 | Done | 2920 bare + suffixed symbol both listed: the alias claims the name first and the verbatim one fails forever; dedupe by resolved broker name at parse time. |
| 60 | Done | 2955/2857 identity cache refreshed one scan late after a mid-scan fallback resolution; refresh immediately. |
| 61 | Done | 668/1424 historical modes never retry symbols that failed at init; retry and print statuses before the run. |
| 62 | Done | 2921 retry timer on TimeCurrent (frozen offline) -> TimeLocal; 2923 re-select after Market Watch removal; cache resolution per requested name (avoid rescanning SymbolsTotal x9 every 60 s); 2961 digits<0. |
| 63 | Done | 2728/6624 non-FX symbols accepted although base_index<0 (pips=points, permanent BLOCK_BAD_SPREAD); reject with status "not an FX pair". |
| 64 | Done | 652/2499/2549 ParseSymbols error messages (silent zero returns, dead MAX_PROFILES branch, duplicated cap check). |
| 65 | Done | 660 SELFTEST mode still parses symbols, selects them and allocates buffers; skip. |
| 66 | Done | 147-156 g_* mirrors are pure indirection validated inconsistently; drop mirrors (read inputs) except g_runtime_operating_mode; rename g_range_lookback. |
| 67 | Done | 3090 ClearProfileHistory does not clear session baselines / derived stats; complete it. |
| 68 | Done | 685 OnDeinit: ChartRedraw after cleanup; 649/6586 object prefix: warn on leftover objects at init, GetTickCount cast. |
| # | Status | Task |
|---|---|---|
| 69 | Done | 5455/5466/5359 DiagnosticsText computed up to 3x per scan with 40 ObjectFind each; once per scan; track object count. |
| 70 | Done | 5975 static object properties rewritten every update, ObjectFind twice per row, colour set twice; set on create only; check ObjectSet returns. |
| 71 | Done | 5686/5714 compact tags always truncated and absent from tooltip; add tags to tooltip; document label length assumption. |
| 72 | Done | 5684/5701 session column constant "-" when disabled; build conditionally; 5361/5714 disk_io constant slots removed; scan_avg -> scan_ewma. |
| 73 | Done | 5436 history row tooltip = row text; store reason/tags in SignalHistoryEntry. |
| 74 | Done | 6083 PadRight(symbol,7) vs 10. |
| 75 | Done | 5466 magic row 2 -> DIAGNOSTICS_ROW_INDEX; ObjectDelete of row 0 / diagnostics row every scan -> once. |
| 76 | Done | 5591 selection sort unstable -> tie-break on profile_index; 5420/5434/5473/5970 dead checks. |
| 77 | Done | 6029 text width heuristic -> TextGetSize measurement; dead limit<=3 branch. |
| 78 | Done | no OnChartEvent -> handle CHARTEVENT_CHART_CHANGE to refit rows. |
| 79 | Done | 2232/2478/1168 historical report never drawn on chart (ready line clears the buffer); draw the report, keep the ready line; 2461 report buffer cap truncates the Journal -> bound only the dashboard loop; 2491 header row consistency. |
| 80 | Done | 1151/2427 "running" header never painted; Journal line before the run; abort flag on IsStopped. |
| # | Status | Task |
|---|---|---|
| 81 | Done | 3825-4291 direction-independent evaluation (execution, calendar, session, tick z, basket agreement) done twice per profile; evaluate once per profile per scan. |
| 82 | Done | 3971/4499 reason/tag strings built for every profile every scan; build lazily for displayed/debug rows. |
| 83 | Done | 6232 CopyTicks per symbol per scan even when quote_time_msc unchanged; cache keyed on quote_time_msc; sibling reuse must also check a scan stamp (3358/6296). |
| 84 | Done | 3260/3342 two M1 CopyRates per symbol per scan; copy once, derive both. |
| 85 | Done | 3155 spread/snapshot statistics recomputed when no new sample; guard on new_quote_sample; per-call dynamic arrays -> scratch buffers. |
| 86 | Done | 4118/4689 BreakoutBufferPrice computed 3x per direction. |
| 87 | Done | (unreachable branch removed; basket participation follows the symbol leader, which is the first valid-or-not profile: an invalid leader means the symbol has no fresh data at all) 3321 basket participation only via first profile even if invalid -> first valid profile. |
| 88 | Done | 3555 has_trigger false zeroes outside timers but not reentered_since_*; 3396 stale range fields on failure branch. |
| # | Status | Task |
|---|---|---|
| 89 | Done | Factor the live composite blend + cap ladder into a pure function over component scores used by both live and historical paths. |
| 90 | Done | 1619/1676 historical impulse z and acceleration are per-minute quantities fed into per-second ramps; either compute comparable features or label as proxies with their own thresholds (not MinImpulseZForSignal). |
| 91 | Done | 1523/2003 outcomes ignore spread cost; deduct the bar spread once per outcome. |
| 92 | Done | 1498/1516 stride caps evaluated boundaries, not signals; cap accepted signals; print effective coverage. |
| 93 | Done | 1788/1817/1848/2027 strict minute-continuity rejects gapped windows (H4+ never scored, session bias); aggregate by time, tolerate missing minutes, count rejected boundaries; 1814 ATR previous-close continuity. |
| 94 | Done | 2027/1543 unevaluable outcomes counted as R=0; evaluable flag and unevaluated counter. |
| 95 | Done | 1694/1703/1667/1702 exhaustion, m5/m15 context, hold and flow proxies diverge from live inputs; align where possible, label honestly otherwise. |
| 96 | Done | 1257/1341 candidates vary target/stop so R is not comparable; rank on a common outcome definition, report candidate geometry separately. |
| 97 | Done | 2148/2170 profiles_tested counts zero-scored profiles; 2280 "Recommended effective settings" restricted to equivalent parameters; proxies listed separately. |
| 98 | Done | 1457/2189 report prints input lookback not achieved span; warn when short; 1392 aborted runs print "ABORTED". |
| 99 | Done | 1560 BuildHistoricalSignalScore local index guard; 1571 current_volume unused; 1190 candidate 0 branch unreachable; 1465 ReverseRates unreachable; 2039 redundant guard; 1711 session at close time; 2108 bucket label for min_confidence < 60. |
| 100 | Done | 1511/2412 boundary detection via TimeToStruct per bar per candidate; integer arithmetic; hoist boundary list; cache direction-invariant features across directions and candidates; scratch buffers instead of per-call allocation (1877/1892/1917); rolling median spread. |
| # | Status | Task |
|---|---|---|
| 101 | Done | Unused parameters: UpdateBasketAtr(trigger_rates, copied_trigger), BuildHumanReadableReason(profile), SignalExpiredByContext(now), AddBlockedDebugSignal(now), DashboardSortScore(direction). |
| 102 | Done | Write-only fields: movement_15m_pips, CalendarContext.importance_score/proximity_minutes/relevant_event_nearby, flow.pass, impulse.valid_ticks_used, CompositeSignalScore.direction, dominant_currency_flow. |
| 103 | Done | 3728/3823 double ResetCompositeSignalScore; 3895/3897 redundant assignments; 4282 duplicate assignment; 4565 unreachable tag terms; 4665 unreachable branch; 2869/5346 redundant reset. |
| 104 | Done | SelfTestXxx int returns discarded -> void; 6704 MedianAbsDeviation wrapper over scratch; 6693 MedianOfArray size contract. |
| 105 | Done | SymbolListContains allocations; IntAbs/IntMin/Max3 review (keep if clearer). |
| # | Status | Task |
|---|---|---|
| 106 | Done | SelfTestNear tolerance (0.0001 equals PipSize expectations); relative tolerance. |
| 107 | Done | Remove tautologies (BaselineHorizonMinutes positive, ObjectNamespaceToken non-empty); assert token charset; currency indices via codes. |
| 108 | Done | New group: historical engine (synthetic M1 array with gap: boundary, aggregation, ATR, range box, outcome target/stop/both/neither, buckets, ProfitFactorProxy, ScoreEdge, AutotuneObjective floor, ApplyHistoricalCap, TimeframeMinutes all branches). |
| 109 | Done | New group: signal history (eviction with dwell, insert/update, held score, ordering), FitDashboardText/PadRight/FormatLocalTimestamp, IsRolloverTime, ring indices, shared composite function (task 89), RobustZ/SpeedRobustZ agreement, availability gating. |
| 110 | Done | RunSelfTest prints the total from counters; docs stop hard-coding the number (currently 72, docs say 74). |
| # | Status | Task |
|---|---|---|
| 111 | Done | Configuration.md: MinImpulseZForSignal 1.40, BaselineLookbackSamples 1800, OutcomeHorizonMinutes3 <= 240, engine-at-least-one rule, text length limits, equal-hour semantics, new inputs. |
| 112 | Done | Signal-Logic.md: five -> ten, 94/95 ceilings, post-engine blocks, tick quality wording, updated scoring semantics. |
| 113 | Done | Operations/Changelog/Testing: dwell semantics, refresh dependency, example rows, default-path test step, row layout. |
| 114 | Done | Release-Checklist compile path contradiction; Known-Limitations 1.8 vs 1.4 rescale note; Development-Guide and Testing pages: census tool + harness. |
| 115 | Done | README, CLAUDE.md: tooling, assertion count, workflow. |
| 116 | Done | Changelog entry, version bump (source line 1, #property version, README, Home.md), deployment clone update. |
| 117 | Done | Final full audit pass: census clean, shellcheck clean, build clean, self-test green, wiki tracker updated, push repo and wiki. |
| # | Status | Task |
|---|---|---|
| 118 | Done | MT5 keeps only 63 characters of an OBJ_LABEL text (verified on build 6193 with a 120-character probe): DASHBOARD_MAX_TEXT_CHARS was 82 and the active rows, diagnostics line and report lines were silently cut on the chart. Rows re-composed to fit 63, diagnostics split over two rows, report lines wrapped onto extra labels. |
| 119 | Done | Runtime finding from the harness VALIDATION run: on this broker 94% of M1 bars carry no spread column, so removing the old 1-pip imputation left the execution gate blocking nearly every boundary. The validator now takes the bar spread, else the window median of bars that carry one, else the symbol's current spread, and the report prints the source mix. |
| 120 | Done | tools/selftest-macos.sh gained --validation and --autotune modes (short EURUSD,GBPUSD M5,H1 runs through the terminal); document in the wiki Testing page. |
Append a new numbered row to the most fitting section with status Open, a line reference, the defect in one sentence and the intended fix. Never renumber existing rows; ids are referenced from commit messages and the Changelog.