/ninjatrader:event-watchfrom NinjaTrader
Reports upcoming economic events (FOMC, CPI, NFP, EIA, OPEC, earnings) and session boundaries (NY cash open, settlement). Filters by user positions, explains post-move attribution, and computes historical reaction sizes.
Ships in NinjaTrader. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Give the user volatility-event context on demand. Three things:
It also recognizes session boundaries: NY cash open, EIA release window, FOMC press conference. Those drive volatility even without an explicit event.
Calendars and event data only — no account binding. A sibling skill's account resolution might already pin the session to demo (simulation) or live. If so, stay on that same MCP server.
Tool names below are bare. The NinjaTrader MCP server provides them. Your client adds its own prefix. See AGENTS.md at the repo root.
economic_calendar — upcoming releases with date, eventName, importance (1–5), actual, consensus, prior. These field names come from an external, unversioned passthrough API. Verify them against a live call — the MCP server's own schema does not guarantee them.earnings_calendar — equity-index contextmarket_history — bar windows around past releases for reaction-size mathmy_portfolio — dollar exposure in current positions. Prune with fields=["positions[].symbol","positions[].netPos","positions[].openPnL"].market_snapshot — gives the current price when you propose bracket alerts. Prune with fields=["snapshots[].symbol","snapshots[].lastPrice","snapshots[].tickSize"].Explicitly not allowed: third-party commercial calendar sites (investing.com, forexfactory, tradingeconomics) — TOS-restricted and redundant with data the server already exposes.
Phrase outputs as "you asked near X", never "X is about to happen" (that would imply a timer this skill does not have). Proactive pushes belong on the MCP's SSE channel, not in a skill.
Every event you report must appear in the economic_calendar payload (after importance_filter.py). These rules are absolute:
date timestamp shows. When you convert time zones, convert each event and re-bucket its day from the converted time. Never group events by the day the market "usually" releases them.economic_calendar(fromDate=<today ISO-8601>, toDate=<today+3d ISO-8601>)
my_portfolio(fields=["positions[].symbol","positions[].netPos","positions[].openPnL"])
Call my_portfolio once for each account name you already know from an earlier tool call in this session. The tool requires an account argument — a call without one fails. If you do not know an account name yet, ask the user for one before you call my_portfolio. Never pass a guessed account name, like Sim101. The server rejects it.
Expect an oversized result. A multi-day calendar window often exceeds the inline tool-result cap. When that happens, your client saves the JSON to a file and returns the path instead of the payload. That file is the input to importance_filter.py — pass the saved path with --file. Do not explore the file with ad-hoc jq queries or reassemble the calendar yourself. The filter script is the only sanctioned reader. Never re-type or inline a large JSON payload into the command.
python3 scripts/importance_filter.py --file <saved-tool-result-path> \
--products ES MNQ CL --min-importance 3
If the response has hasMore: true, page with offset and run the filter over each page before you answer. Otherwise, say the list covers only the first page.
importance_filter.py drops:
importance < --min-importance (default 3)Output fields: kept, dropped_by_importance, dropped_by_relevance, events[] (each with matched_product_groups).
Gather the last N releases from economic_calendar. Use a fromDate far enough back for about 6 releases of the same type. CPI is monthly, so that is about 180 days. Then, for each release, fetch a bar window around the release time via market_history:
market_history(
symbol="ESU6",
barType="Minute",
barSize=5,
from=<release - 5min, ISO-8601>,
to=<release + 30min, ISO-8601>
)
Structure each release + its bars into the input format:
{"events": [
{"timestamp": "2026-01-15T13:30:00Z", "bars": [...]},
{"timestamp": "2026-02-13T13:30:00Z", "bars": [...]},
...
]}
Save that as events.json and run reaction_size.py:
python3 scripts/reaction_size.py --file events.json --offset-minutes 5
Output fields:
samples — events that had enough bar datamean_abs_move — avg |close(t+offset) − close(t0)|mean_max_move_up / mean_max_move_down — directional maxrange_mean / range_max / range_stdev — window range statsAll values are in raw points. Multiply by valuePerPoint × |netPos| for the dollar exposure.
Input fixture for shape reference: scripts/fixtures/cpi_reactions_synthetic.json.
Two inputs: recent price action (from market-context or market_history) + the nearest release from economic_calendar. Narrate the causal link where the timestamps line up. If no release falls within 10min, do not invent one — say "no scheduled release near the spike; could be headline-driven."
When the user's question falls near a high-vol boundary (NY cash open, EIA release, FOMC statement, etc.), surface the context:
"You asked 3 min before NY cash open — expect a vol spike and spread-widening in the first 10 min."
The boundary table lives in references/session-schedules.md — load that file and pick the nearest boundary.
When the user holds a position exposed to a known-risk event, propose a reaction-window bracket alert. Then hand it to the user to submit via alerts-composer:
Propose: lastPrice(ESU6) > <entry + reaction_size> OR lastPrice(ESU6) < <entry - reaction_size>
Use mean_abs_move from reaction_size.py as the per-side magnitude, or bump it by 1.5× for a "meaningful surprise" threshold. Pass this expression to alerts-composer — this skill does not submit alerts.
Subjects must be unquoted. The DSL parser rejects lastPrice("ESU6"). The subject regex [\$@]?[\w\s\-\+/|]+ excludes double-quotes: the server's rule parser accepts only unquoted subject strings. alerts-composer/scripts/validate.py catches this offline before submission.
reaction_size.py for today's
actual reaction range before you size a hedge or a stop. Options:
flatten, hedge with MES short, or widen stops to 1.5× normal."reaction_size.py over the last N releases for the
exact average, max, and spread before you size a bracket."market-context: market-context is intra-day analytics on one symbol (VWAP, ATR, profile). event-watch is cross-event history ("how does ES usually move on CPI?") + calendar surfacing.position-watchdog: watchdog monitors one live position. If a known-risk event threatens that position, narrate with event-watch and propose a reaction-window alert.pretrade-risk: pretrade-risk sizes an entry. If the entry sits near a known event, flag the event-derived volatility. Do not hard-gate the trade — the user decides.alerts-composer: event-watch proposes an alert expression; alerts-composer constructs + submits it. One-way handoff.economic_calendar / earnings_calendar tools.scripts/importance_filter.py — filters the economic_calendar payload by min importance + product-group relevance. Input via stdin.scripts/reaction_size.py — historical reaction-size math for a list of {event, bars} pairs. Input via stdin.scripts/fixtures/ — synthetic samples for smoke-testing:
econ_calendar_synthetic.json — 8-event calendar for the filtercpi_reactions_synthetic.json — 3 CPI releases with 5-min barsreferences/session-schedules.md — US futures market hours + a high-vol boundary table (08:30, 09:30, 10:00, 10:30, 14:00, 14:30, 16:00 ET). Load it when a question falls near a session boundary.references/event-playbooks.md — per-event narrative context (FOMC, CPI, NFP, PCE, PPI, ISM, EIA, OPEC, ECB, BOJ, earnings). Load it when you narrate the story behind one named event.references/event-playbooks.md (opens in a new tab)references/session-schedules.md (opens in a new tab)scripts/fixtures/cpi_reactions_synthetic.json (opens in a new tab)scripts/fixtures/econ_calendar_synthetic.json (opens in a new tab)scripts/importance_filter.py (opens in a new tab)scripts/reaction_size.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/alerts-composerTranslates natural-language alert intent into a validated Tradovate alert-DSL expression. Submits the expression via create_alert.expression. Covers 37 numeric functions across Account (netLiq, dollarOpenPL, dailyLossLimit, ...) and Contract (lastPrice, percentChange, settlementPrice, ...) entities. Also covers Position (netPos, posOpenPLUsd, posInitMarginUsd, ...) and Currency (currentRate) entities. Supports arithmetic (plus, minus, times, divide, parens), comparison (gt, gte, lt, lte, eq, neq), and top-level AND/OR/XOR logic. Validates the expression offline (subject syntax, function catalog, paren balance, flat-logic rule) before submission. Use when the user says "alert", "notify", "notify me", "watch for", "wake me when", "tell me when", "heads up when", "ping me if", "set a trigger", or "let me know if". Also use when the user asks about a sibling skill's proposed alert expression. position-watchdog, event-watch, and pretrade-risk also submit their proposed expressions through this skill./chart-renderThis skill renders three static PNG charts, with Matplotlib. Candlestick charts, with VWAP, fill-marker, and price-level overlays. Horizontal volume-profile histograms, with POC, VAH, and VAL lines. Cumulative-P&L equity curves, with optional drawdown shading. Chart data comes from market_history bars, fill_history fills, market-context analytics, and trade-journal round-trip trades. Use it when the user asks to "chart", "plot", "draw", "visualize", or "render". Also use it when the user wants a picture of the bars, fills, equity, or profile. Also use it for a qualified "show", such as "show the chart", "show me the bars", or "show my equity curve". A bare "show me my positions" is NOT a chart request. Route it to position-watchdog or my_portfolio. It produces PNG output at a specified path. It is never interactive. This skill requires matplotlib (install with `pip install matplotlib`).npx claudepluginhub nt-ninjatrader/mcp-skills --plugin ninjatraderOther plugins' skills for the same job