MAG
Stock Magnitude ForecasterConfigurate Symbol
Runs the per-symbol magnitude configurator for one ticker: fetches its daily-wide derivative dataset via ORK's TDM proxy, establishes a no-feature SMAPE-aggregate baseline, then walks every available feature method one-at-a- time and keeps the ones that strictly improve the measured peak aggregate walk score. The resulting optimal feature set plus its measured score is persisted as JSON so the per-symbol forecast picks it up on its next run. Single-flight per job kind — a forecast on a different symbol does NOT block this kickoff. Requires the symbol's derivative data to already exist in TDM's local store.
Forecast Symbol
Generates the magnitude forecast for one ticker's next NYSE trading day. Loads the symbol's saved configuration when one exists; otherwise trains on the default no-feature baseline. The forecast lands under the per-date individual forecast directory keyed by the next trading day's ISO date and carries the symbol's saved peak aggregate walk score as its accuracy column. The SILO ALG that runs is the operator-set value on the MAG Configuration page (no per-fire toggle — the choice is ingrained into every forecast and every configurator walk). Single-flight per job kind — a configurate-symbol run does NOT block this kickoff. Requires the symbol's derivative data to already exist in TDM's local store.
Configurate All Symbols
Runs MAG's per-symbol configurator over every ticker in TDM's daily-wide derivative inventory. Same inventory source SIG's bulk configurator uses — MAG and SIG stay configurated against the same symbol set, so any symbol SIG ever calls UP with sufficient confidence is already pre-configured on MAG's side. Sequential-path processes one symbol at a time; parallel-path uses a thread pool sized by Max workers (0 = auto-detect from CPU). Per-symbol failures are best-effort — logged + counted, do not abort the whole run. Hours of runtime; default concurrency-gate setting (off) holds the system exclusive while it runs. No upstream dependency is declared — operators can fire this against partial / ad-hoc derivative inventories for testing without an ORK-side gate.
Forecast All Symbols
Bulk magnitude forecast routine. Waits for SIG's bulk forecast routine to complete, fetches SIG's latest full forecast report via the ORK proxy, and filters the rows to UP-direction calls whose configurator-accuracy and classifier-probability both clear the operator-set minimums on the MAG Configuration page. Configurates every filtered symbol that does not yet have a saved MAG configuration (forced "only missing" for the configurate phase — re-running the configurator on the same symbol set has no upside), then forecasts each filtered symbol that has a MAG configuration on disk. Every per-symbol forecast file for one run lands under the SIG report's frozen entry_date, so a downstream consumer indexes by entry_date and walks the directory. When "Only for missing forecasts" is on, per-symbol forecast files that already exist on disk for the target entry_date are skipped during the forecast phase — saves hours when resuming a partial run; defaults off so a fresh run regenerates every per-symbol forecast. Sequential-path processes one symbol at a time within each phase; parallel-path uses a thread pool sized by Max workers (0 = auto-detect from CPU) shared across both phases. Per-symbol failures are best-effort within each phase. Hours of runtime worst case; default concurrency-gate setting (off) holds the system exclusive while it runs.
Rebuild Distributions
Refreshes the cached distributions snapshot the Distributions tab reads from. The cache lives in two tables in MAG's local store and serves the Distributions page without walking the saved per-symbol configuration set on every load. Configurate All Symbols and Forecast All Symbols already refresh this cache at the end of their pipelines, so this action exists for the operator who wants to refresh the snapshot without running a full bulk job (or who's bringing up a fresh deployment with no cache populated yet). Fast — seconds even on a universe-sized inventory. Default concurrency-gate setting (off) holds the system exclusive while the rebuild writes both tables under one transaction.