Event risk guard
Turn a calendar the user already has into a blackout table, then call each planned trade. This is advisory. It does not place, modify, or close a trade, and it is not investment advice.
Steps
- Take the calendar from the user. Required columns are
nameandrelease_utc.impactandsymbolsmay be blank. If the minutes before and after the release are missing, ask. Do not invent a window or a release time. - Run
python3 scripts/blackout_table.pyon that file with--beforeand--after. The fixture is assets/sample.csv, and it is not a live calendar. - Treat a row as high-impact when the script prints
watched=yes. That flag is on for CPI, FOMC, NFP, and EIA crude inventories, and for any row the user markedhigh. Awatched=norow stays in the table and does not drive a call. - For each planned trade, compare the entry time with the watched blackouts whose
symbolsinclude that trade.USDcovers pairs and dollar products the user said are dollar trades.crudecovers the oil symbols they named. Ifsymbolsisnot stated, do not guess the market. - Call the trade. Stand-aside when the entry time is inside a matching watched blackout, or when the symbols were not stated. Reduce when the entry is outside every matching blackout but the user did not name a stop. Go only when the entry is outside every matching blackout and a stop is named. Check the call against the printed start and end. Do not send an order.
Example
User: Use assets/sample.csv with 15 minutes before and 15 after. Planned trade: buy EURUSD at 2026-11-13T13:20:00Z with a stop. Do not send an order.
Agent: The script prints rows=5. CPI is watched, blackout 2026-11-13T13:15:00Z to 2026-11-13T13:45:00Z, symbols USD. The EURUSD entry sits inside that window. Call: stand-aside. Consumer confidence is watched=no and does not change the call. No order is sent.
Boundaries
Do not fetch a calendar, invent a release, or widen a window the user set. Do not turn a go call into an order. A go call is not a forecast.
References
News blackouts are the same idea as the news line on prop-firm-rule-check: a time the user already decided not to trade. This skill builds the window table. It does not look up a firm's current rule.
Lint report
Score 100. 0 errors, 0 warnings, 0 notes.
skill-lint reported no errors, warnings, or notes.
See also
- trade-desk, the agent that bundles this skill
- MT5 trade journal Trading & markets
- Position risk sizer Trading & markets
- Market data briefing Trading & markets
- Session plan Trading & markets
- Prop firm rule check Trading & markets
References
- Source path skills/trading/event-risk-guard
- SKILL.md 2.8 KB
- assets/sample.csv 238 B
- scripts/blackout_table.py 2.7 KB
- Raw SKILL.md
- Download the skill folder
- Agent Skills specification