Ghost Auto-Trader Architecture
This skill helps you deploy the Ghost Alpha Trading System for 0DTE options.
Architecture Pipeline
- Signal Generation: TradingView fires a "Ghost Alpha Grade A" alert based on momentum squeeze metrics.
- Webhook Receiver: A Python FastAPI/Flask backend receives the signal payload containing ticker, timeframe, grade, and relative volume.
- The AI Gate: The payload is sent to an LLM (e.g., Gemini Flash) for immediate contextual validation (checking macro alignment and news sentiment).
- Execution: If the AI gate approves, the system automatically buys the ATM/OTM 0DTE option via the broker API (e.g., Tradier).
- Position Management: A rigid 30-second monitor loop enforces +50% Take Profit, -40% Stop Loss, and a hard 3:00 PM ET time-based exit.
Choosing the execution broker
This pipeline places live orders on a tool call — the AI gate is the only thing between a signal and a filled position, so the broker you wire in matters as much as the strategy. Before hardcoding a broker API:
- Use the
broker-mcp-selectorskill to choose one, or check the broker directly in awesome-broker-mcp. - The default here, Tradier, is live on a tool call — there is no broker-enforced approval step, so your risk parameters and the AI gate are the entire guardrail. Size and test accordingly.
- Paper/sandbox first. Run the full pipeline against a paper account for far longer than feels necessary before pointing it at real money. Prompt injection into the signal or news feed reaches the order in this design.
Usage
When the user asks to "set up a trading bot" or "build an auto-trader":
- Scaffold the
main.pywebhook listener. - Scaffold the
auto_trader.pyexecution engine with the AI gate. - Ensure strict risk management parameters are hardcoded.