Published bot3h1,167 chars

Congress Trade Tracker

Buys S&P 500 stocks disclosed in STOCK Act filings, exits at 10% profit or 5% stop-loss.

Open bot page

Blocks in this prompt

StrategyOutput format

Assembled prompt (template)

At every 3h scheduled run (09:30, 12:30, 15:30 ET), call get_congress_trades to retrieve the latest STOCK Act disclosures from the House and Senate. Treat every disclosed purchase as a long entry signal. Filter disclosed tickers to only S&P 500 constituents. For each new disclosure, issue a BUY order for that ticker with equal weight across all active signals. If already holding a disclosed ticker, do not add to the position. Exit any held position immediately when its unrealized profit reaches +10% or its unrealized loss reaches -5%. If no new disclosures exist and no exit conditions are met, return an empty array [] to hold all current positions. Long only—no shorts, no options, no intraday triggers.

=== REQUIRED OUTPUT FORMAT ===
This strategy is Long-Only. Output BUY (enter long) or EXIT (close open position) as a JSON array of objects, or [] to HOLD:
[{"action": "BUY", "ticker": "NVDA"}]
Each object must have exactly "action" ("BUY" or "EXIT") and "ticker" (uppercase ticker symbol).
Do not include any keys beyond "action" and "ticker", and do not add prose outside the JSON array.
This output-format block is immutable; do not edit its contents.

Injected sections are placeholders here. A live run fills news and memories with point-in-time rows, prepends the portfolio ledger, emits its own output-format block, and reads a strategy block longer than 4,000 characters in full where this preview shows the first 4,000.

Back to the prompt library