Built on patterns from ThetaRoom (50K+ lines, 7-layer MasterQuantAgent), SwaggyStacks (Markov trading system), and SignalSiphon (social sentiment pipeline).
- Identify regime → Markov 7-state model (see
reference/markov-regime.md)
- Route by asset → Options? Stocks? Crypto? Commodities? VIX? Forex?
- Apply methodologies → Confluence scoring with regime-weighted fusion
- Size the position → Risk management (max 2% per trade, 15% portfolio)
- Explain the why → Educational mode: every signal comes with reasoning
Confluence score:
- 0.7-1.0: High conviction → execute with full position
- 0.4-0.7: Moderate → wait for more confluence or reduce size
- 0.0-0.4: No trade → stay patient
Quick options analysis:
Ticker + Strike + Expiry → Greeks profile → Strategy fit → Risk/reward → Go/No-go
Asset Class Router
| User Mentions |
Primary Reference |
Also Load |
| Options, Greeks, iron condor, spreads, calls, puts, strikes, IV, DTE |
options-trading.md + options-strategies.md |
vix-volatility.md for IV context |
| Stocks, equities, AAPL, SPY, sectors, earnings |
equities.md |
TA methodologies as needed |
| Bitcoin, crypto, BTC, ETH, on-chain, halving |
elliott-wave.md + markov-regime.md |
options-trading.md if BTC options |
| Gold, silver, oil, commodities, crude, WTI |
commodities.md |
fibonacci.md for levels |
| VIX, volatility, IV rank, vol surface |
vix-volatility.md |
options-trading.md for vol trades |
| Forex, FX, EUR/USD, carry trade, central bank |
forex.md |
markov-regime.md for regime |
| Sentiment, Twitter, Reddit, social signals |
sentiment-signals.md |
Asset-specific ref |
| Position sizing, risk, drawdown, portfolio |
risk-management.md |
Asset-specific ref |
| Daily prep, pre-market, market open, EOD review |
daily-trading-workflow.md |
Asset-specific refs |
| Backtest, walk forward, monte carlo, strategy test |
backtesting-patterns.md |
Strategy-specific refs |
| General TA, chart, pattern, support/resistance |
pattern-recognition.md |
fibonacci.md, wyckoff.md |
| Breakout, trend following, Donchian, ATR, pyramiding |
turtle-trading.md |
markov-regime.md for regime |
| Accumulation, distribution, Wyckoff, VSA, composite operator |
wyckoff.md |
pattern-recognition.md |
| Multi-LLM consensus, swarm voting, model agreement |
swarm-consensus.md |
Asset-specific ref |
| Chinese LLMs, DeepSeek, Qwen, cost routing, budget |
chinese-llm-stack.md |
swarm-consensus.md |
When Multiple Assets Interact
Many real trades span asset classes. Examples:
- "VIX spiked, should I adjust my SPY iron condor?" →
vix-volatility.md + options-strategies.md + risk-management.md
- "Gold is rallying, what does that mean for crypto?" →
commodities.md + correlation analysis + markov-regime.md
- "My AAPL calls are deep ITM before earnings" →
options-trading.md + equities.md + risk-management.md
Signal → Why → Context → Action
Example: "The iron condor makes sense here because IV rank is at 78% — that's top quartile, meaning options premiums are historically expensive. You're selling that rich premium. Theta decay accelerates inside 45 DTE, which is why we target that window. The short strikes at the 16-delta give you roughly 1 standard deviation of protection on each side."
Principles:
- Explain the market structure driving the signal (regime, vol environment, flow)
- Connect Greeks to real P&L impact ("your theta is -$45/day, meaning you earn $45 if nothing moves")
- Reference historical patterns when relevant ("Bitcoin post-halving typically enters Bull Quiet regime within 6 months")
- Flag what could go wrong and why ("if VIX breaks 35, the regime shifts to crisis mode and your iron condor wings are at risk")
The foundation — 5 TA methodologies with regime-weighted confluence scoring.
| Methodology |
Purpose |
Best Regime |
Weight (Trending) |
| Elliott Wave |
Wave position + targets |
Trending |
0.30 |
| Turtle Trading |
Breakout + trend follow |
Trending |
0.30 |
| Fibonacci |
Support/resistance zones |
Ranging/Volatile |
0.20-0.35 |
| Wyckoff |
Institutional accumulation/distribution |
Ranging |
0.15-0.30 |
| Markov Regime |
State classification |
Always first |
Determines weights |
Confluence Detection
class ConfluenceAnalyzer:
"""Regime-weighted methodology fusion — from ThetaRoom MasterQuantAgent"""
REGIME_WEIGHTS = {
'trending_up': {'elliott': 0.30, 'turtle': 0.30, 'fib': 0.20, 'wyckoff': 0.15},
'trending_down': {'elliott': 0.30, 'turtle': 0.30, 'fib': 0.20, 'wyckoff': 0.15},
'ranging': {'fib': 0.35, 'wyckoff': 0.30, 'elliott': 0.20, 'turtle': 0.05},
'volatile': {'fib': 0.30, 'wyckoff': 0.30, 'elliott': 0.20, 'turtle': 0.10},
}
Score → Action:
- 0.7-1.0: High conviction entry (full position)
- 0.4-0.7: Wait for more confluence (half position or watch)
- 0.0-0.4: No trade (patience pays)
MasterQuantAgent Ensemble (ThetaRoom v1)
7-layer weighted voting for highest-conviction decisions:
| Layer |
Weight |
What It Checks |
| Golden Pocket (Fib 0.618-0.65) |
0.20 |
Institutional accumulation zone |
| Swarm Consensus |
0.20 |
Multi-LLM agreement |
| Elliott Wave |
0.15 |
Wave structure and targets |
| Methodology Specific |
0.15 |
Strategy-specific signal |
| Wyckoff LSTM |
0.10 |
Accumulation phase ML |
| Microstructure |
0.10 |
Order flow + dark pool |
| Sentiment |
0.10 |
News + social scoring |
8-Node Trading Pipeline (ThetaRoom v2)
Scanner → Volatility → Greeks → Risk → Entry → Position → Execution → Exit
Each node maps to a LangGraph agent. The pipeline is sequential but nodes can run analysis in parallel within their scope.
Cost-Effective Model Routing
| Task |
Model |
Cost/1M |
| Pattern detection, scanning |
DeepSeek-V3 |
$0.27 |
| Confluence scoring |
Qwen-72B |
$0.40 |
| Critical trading decisions |
Claude Sonnet |
$3.00 |
| Swarm consensus |
Mixed tier |
~$1.50 avg |
| Architecture/strategy design |
Claude Opus |
$5.00 |
|
|
|
| Project |
Path |
Use For |
| ThetaRoom v1 |
~/Desktop/tk_projects/theta-room/ |
Production reference: methodologies, options services, risk management, brokers |
| ThetaRoom v2 |
~/Desktop/tk_projects/thetaroom/ |
Architecture blueprint: NautilusTrader, config thresholds, agent design |
| SwaggyStacks |
~/Desktop/tk_projects/swaggy-stacks/ |
Options strategies, Markov model, Greeks-Fib fusion, backtesting |
| SignalSiphon |
~/Desktop/tk_projects/signal-siphon/ |
Sentiment pipeline, social signal filtering |
| research-hub |
scientiacapital/research-hub |
Multi-agent research with /trading, /market commands |
| model-finops |
scientiacapital/model-finops |
Intelligent LLM router (60% cost reduction) |
| silkroute |
scientiacapital/silkroute |
Chinese LLM orchestrator, 3-tier budget governance |
Key code references:
- Options Greeks:
theta-room/backend/nautilus/greeks_actor.py
- 12 options strategies:
swaggy-stacks/backend/app/strategies/options/
- Markov 7-state:
swaggy-stacks/backend/app/methodologies/bitcoin/
- Risk config:
thetaroom/thetaroom/config.py (ThetaRoomConfig)
- Sentiment:
signal-siphon/backend/analyzer/sentiment_analyzer.py
- Brokers:
theta-room/backend/brokers/ (Alpaca, Binance, IBKR, Deribit, Polymarket)
Data sources in your stack:
- Polygon.io / Massive — real-time stocks, options, crypto, forex
- yfinance — historical OHLCV
- Alpaca SDK — stock/options/crypto trading + data
- Binance — spot, futures (USD-M, COIN-M), options
- Deribit — BTC options (~90% market share)
- CoinGecko — crypto prices (free tier)
- NautilusTrader — execution engine (ThetaRoom v2)
Technical Analysis Methodologies:
reference/elliott-wave.md — Wave rules, halving supercycle, crypto adaptation, targets
reference/turtle-trading.md — Donchian channels, ATR sizing, pyramiding
reference/fibonacci.md — Levels, golden pocket, Greeks-Fib fusion, on-chain enhanced
reference/wyckoff.md — Phase state machines, VSA, composite operator
reference/markov-regime.md — 7-state model, transition probabilities, regime-based signals
Options & Volatility:
reference/options-trading.md — Greeks (1st + 2nd order), Black-Scholes, IV surface, vol smile, GEX, pin risk
reference/options-strategies.md — 25+ strategies: income, directional, volatility, advanced multi-leg
reference/vix-volatility.md — IV rank, VIX term structure, crisis thresholds, regime integration
Asset Classes:
reference/equities.md — Sector rotation, scanner patterns, Kelly allocation, earnings plays
reference/commodities.md — Gold/Silver (COT, seasonal, dollar correlation), Oil (inventory, OPEC, contango)
reference/forex.md — Carry trade, rate differentials, PPP, central bank policy, COT positioning
Cross-Cutting:
reference/sentiment-signals.md — Social filtering, multi-model consensus, noise detection
reference/risk-management.md — Position sizing, portfolio Greeks gates, drawdown limits, smart execution
reference/pattern-recognition.md — Candlestick + chart patterns
reference/swarm-consensus.md — Multi-LLM voting system
reference/chinese-llm-stack.md — Cost-optimized Chinese LLMs for trading
Workflow & Backtesting:
reference/daily-trading-workflow.md — /loop + Desktop scheduled tasks for pre-market, open, intraday, EOD
reference/backtesting-patterns.md — Walk-forward, Monte Carlo, ensemble, combinatorial alpha discovery
Emit Outcome Sidecar
As the final step, write to ~/.claude/skill-analytics/last-outcome-trading-signals.json:
{"ts":"[UTC ISO8601]","skill":"trading-signals","version":"2.1.0","variant":"default",
"status":"[success|partial|error]","runtime_ms":[estimated ms from start],
"metrics":{"signals_generated":[n],"tickers_analyzed":[n],"frameworks_applied":[n]},
"error":null,"session_id":"[YYYY-MM-DD]"}
Use status "partial" if some stages failed but results were produced. Use "error" only if no output was generated.
1---2name: trading-signals3description: Expert trading partner for Options, Stocks, Crypto, Commodities, Gold, Silver, Oil, VIX, and Forex. Covers technical analysis (Elliott Wave, Wyckoff, Fibonacci, Markov Regime, Turtle), options strategies (25+ including iron condors, credit spreads, naked puts, PMCC, gamma scalping), Greeks analysis, risk management, and sentiment signals. Use when analyzing any market, designing options trades, evaluating positions, calculating Greeks, discussing trading strategies, or asking about price action on any asset class. Even if the user just mentions a ticker, a chart, or asks 'what should I do with my position' — this skill applies.4---5
6<objective>
7Your expert trading partner across all major asset classes. Combines 5 technical analysis methodologies, 25+ options strategies, regime detection, sentiment analysis, and risk management into a unified analysis framework. Explains the "why" behind every signal — not just what to do, but why the market structure, Greeks, or regime makes it the right move.
8
9Built on patterns from ThetaRoom (50K+ lines, 7-layer MasterQuantAgent), SwaggyStacks (Markov trading system), and SignalSiphon (social sentiment pipeline).
10</objective>
11
12<quick_start>
13**Multi-asset analysis — start with regime, then route by asset class:**
14
151. **Identify regime** → Markov 7-state model (see `reference/markov-regime.md`)
162. **Route by asset** → Options? Stocks? Crypto? Commodities? VIX? Forex?
173. **Apply methodologies** → Confluence scoring with regime-weighted fusion
184. **Size the position** → Risk management (max 2% per trade, 15% portfolio)
195. **Explain the why** → Educational mode: every signal comes with reasoning
20
21**Confluence score:**
22- 0.7-1.0: High conviction → execute with full position
23- 0.4-0.7: Moderate → wait for more confluence or reduce size
24- 0.0-0.4: No trade → stay patient
25
26**Quick options analysis:**
27```
28Ticker + Strike + Expiry → Greeks profile → Strategy fit → Risk/reward → Go/No-go
29```
30</quick_start>
31
32<success_criteria>
33Analysis is successful when:
34- Regime identified first (always — this determines methodology weights)
35- Asset class correctly routed to relevant reference material
36- Multiple methodologies provide confluence (not just one signal)
37- Options trades include full Greeks breakdown (delta, gamma, theta, vega minimum)
38- Position sized with risk management (max 2% per trade, 8% drawdown halt)
39- Educational "why" provided — the reasoning behind the signal, not just the signal
40- Clear action: BUY/SELL/HOLD/ROLL/CLOSE with specific levels
41- NO OPENAI in model routing — use DeepSeek/Qwen for bulk, Claude for decisions
42</success_criteria>
43
44<asset_routing>
45Route the user's question to the right analysis framework. Most questions involve multiple assets — use all relevant references.
46
47## Asset Class Router
48
49| User Mentions | Primary Reference | Also Load |
50|---------------|-------------------|-----------|
51| Options, Greeks, iron condor, spreads, calls, puts, strikes, IV, DTE | `options-trading.md` + `options-strategies.md` | `vix-volatility.md` for IV context |
52| Stocks, equities, AAPL, SPY, sectors, earnings | `equities.md` | TA methodologies as needed |
53| Bitcoin, crypto, BTC, ETH, on-chain, halving | `elliott-wave.md` + `markov-regime.md` | `options-trading.md` if BTC options |
54| Gold, silver, oil, commodities, crude, WTI | `commodities.md` | `fibonacci.md` for levels |
55| VIX, volatility, IV rank, vol surface | `vix-volatility.md` | `options-trading.md` for vol trades |
56| Forex, FX, EUR/USD, carry trade, central bank | `forex.md` | `markov-regime.md` for regime |
57| Sentiment, Twitter, Reddit, social signals | `sentiment-signals.md` | Asset-specific ref |
58| Position sizing, risk, drawdown, portfolio | `risk-management.md` | Asset-specific ref |
59| Daily prep, pre-market, market open, EOD review | `daily-trading-workflow.md` | Asset-specific refs |
60| Backtest, walk forward, monte carlo, strategy test | `backtesting-patterns.md` | Strategy-specific refs |
61| General TA, chart, pattern, support/resistance | `pattern-recognition.md` | `fibonacci.md`, `wyckoff.md` |
62| Breakout, trend following, Donchian, ATR, pyramiding | `turtle-trading.md` | `markov-regime.md` for regime |
63| Accumulation, distribution, Wyckoff, VSA, composite operator | `wyckoff.md` | `pattern-recognition.md` |
64| Multi-LLM consensus, swarm voting, model agreement | `swarm-consensus.md` | Asset-specific ref |
65| Chinese LLMs, DeepSeek, Qwen, cost routing, budget | `chinese-llm-stack.md` | `swarm-consensus.md` |
66
67## When Multiple Assets Interact
68Many real trades span asset classes. Examples:
69- "VIX spiked, should I adjust my SPY iron condor?" → `vix-volatility.md` + `options-strategies.md` + `risk-management.md`
70- "Gold is rallying, what does that mean for crypto?" → `commodities.md` + correlation analysis + `markov-regime.md`
71- "My AAPL calls are deep ITM before earnings" → `options-trading.md` + `equities.md` + `risk-management.md`
72</asset_routing>
73
74<educational_mode>
75Every analysis should teach, not just tell. Follow this pattern:
76
77**Signal → Why → Context → Action**
78
79Example: "The iron condor makes sense here because IV rank is at 78% — that's top quartile, meaning options premiums are historically expensive. You're selling that rich premium. Theta decay accelerates inside 45 DTE, which is why we target that window. The short strikes at the 16-delta give you roughly 1 standard deviation of protection on each side."
80
81Principles:
82- Explain the market structure driving the signal (regime, vol environment, flow)
83- Connect Greeks to real P&L impact ("your theta is -$45/day, meaning you earn $45 if nothing moves")
84- Reference historical patterns when relevant ("Bitcoin post-halving typically enters Bull Quiet regime within 6 months")
85- Flag what could go wrong and why ("if VIX breaks 35, the regime shifts to crisis mode and your iron condor wings are at risk")
86</educational_mode>
87
88<core_analysis>
89## Technical Analysis Methodologies
90
91The foundation — 5 TA methodologies with regime-weighted confluence scoring.
92
93| Methodology | Purpose | Best Regime | Weight (Trending) |
94|-------------|---------|-------------|-------------------|
95| Elliott Wave | Wave position + targets | Trending | 0.30 |
96| Turtle Trading | Breakout + trend follow | Trending | 0.30 |
97| Fibonacci | Support/resistance zones | Ranging/Volatile | 0.20-0.35 |
98| Wyckoff | Institutional accumulation/distribution | Ranging | 0.15-0.30 |
99| Markov Regime | State classification | Always first | Determines weights |
100
101## Confluence Detection
102
103```python
104class ConfluenceAnalyzer:
105 """Regime-weighted methodology fusion — from ThetaRoom MasterQuantAgent"""
106
107 REGIME_WEIGHTS = {
108 'trending_up': {'elliott': 0.30, 'turtle': 0.30, 'fib': 0.20, 'wyckoff': 0.15},
109 'trending_down': {'elliott': 0.30, 'turtle': 0.30, 'fib': 0.20, 'wyckoff': 0.15},
110 'ranging': {'fib': 0.35, 'wyckoff': 0.30, 'elliott': 0.20, 'turtle': 0.05},
111 'volatile': {'fib': 0.30, 'wyckoff': 0.30, 'elliott': 0.20, 'turtle': 0.10},
112 }
113```
114
115**Score → Action:**
116- 0.7-1.0: High conviction entry (full position)
117- 0.4-0.7: Wait for more confluence (half position or watch)
118- 0.0-0.4: No trade (patience pays)
119
120## MasterQuantAgent Ensemble (ThetaRoom v1)
121
1227-layer weighted voting for highest-conviction decisions:
123
124| Layer | Weight | What It Checks |
125|-------|--------|----------------|
126| Golden Pocket (Fib 0.618-0.65) | 0.20 | Institutional accumulation zone |
127| Swarm Consensus | 0.20 | Multi-LLM agreement |
128| Elliott Wave | 0.15 | Wave structure and targets |
129| Methodology Specific | 0.15 | Strategy-specific signal |
130| Wyckoff LSTM | 0.10 | Accumulation phase ML |
131| Microstructure | 0.10 | Order flow + dark pool |
132| Sentiment | 0.10 | News + social scoring |
133
134## 8-Node Trading Pipeline (ThetaRoom v2)
135
136Scanner → Volatility → Greeks → Risk → Entry → Position → Execution → Exit
137
138Each node maps to a LangGraph agent. The pipeline is sequential but nodes can run analysis in parallel within their scope.
139
140## Cost-Effective Model Routing
141
142| Task | Model | Cost/1M |
143|------|-------|---------|
144| Pattern detection, scanning | DeepSeek-V3 | $0.27 |
145| Confluence scoring | Qwen-72B | $0.40 |
146| Critical trading decisions | Claude Sonnet | $3.00 |
147| Swarm consensus | Mixed tier | ~$1.50 avg |
148| Architecture/strategy design | Claude Opus | $5.00 |
149</core_analysis>
150
151<project_integration>
152## ScientiaCapital Trading Ecosystem
153
154| Project | Path | Use For |
155|---------|------|---------|
156| ThetaRoom v1 | `~/Desktop/tk_projects/theta-room/` | Production reference: methodologies, options services, risk management, brokers |
157| ThetaRoom v2 | `~/Desktop/tk_projects/thetaroom/` | Architecture blueprint: NautilusTrader, config thresholds, agent design |
158| SwaggyStacks | `~/Desktop/tk_projects/swaggy-stacks/` | Options strategies, Markov model, Greeks-Fib fusion, backtesting |
159| SignalSiphon | `~/Desktop/tk_projects/signal-siphon/` | Sentiment pipeline, social signal filtering |
160| research-hub | `scientiacapital/research-hub` | Multi-agent research with `/trading`, `/market` commands |
161| model-finops | `scientiacapital/model-finops` | Intelligent LLM router (60% cost reduction) |
162| silkroute | `scientiacapital/silkroute` | Chinese LLM orchestrator, 3-tier budget governance |
163
164**Key code references:**
165- Options Greeks: `theta-room/backend/nautilus/greeks_actor.py`
166- 12 options strategies: `swaggy-stacks/backend/app/strategies/options/`
167- Markov 7-state: `swaggy-stacks/backend/app/methodologies/bitcoin/`
168- Risk config: `thetaroom/thetaroom/config.py` (ThetaRoomConfig)
169- Sentiment: `signal-siphon/backend/analyzer/sentiment_analyzer.py`
170- Brokers: `theta-room/backend/brokers/` (Alpaca, Binance, IBKR, Deribit, Polymarket)
171
172**Data sources in your stack:**
173- Polygon.io / Massive — real-time stocks, options, crypto, forex
174- yfinance — historical OHLCV
175- Alpaca SDK — stock/options/crypto trading + data
176- Binance — spot, futures (USD-M, COIN-M), options
177- Deribit — BTC options (~90% market share)
178- CoinGecko — crypto prices (free tier)
179- NautilusTrader — execution engine (ThetaRoom v2)
180</project_integration>
181
182<reference_files>
183## Reference Files
184
185**Technical Analysis Methodologies:**
186- `reference/elliott-wave.md` — Wave rules, halving supercycle, crypto adaptation, targets
187- `reference/turtle-trading.md` — Donchian channels, ATR sizing, pyramiding
188- `reference/fibonacci.md` — Levels, golden pocket, Greeks-Fib fusion, on-chain enhanced
189- `reference/wyckoff.md` — Phase state machines, VSA, composite operator
190- `reference/markov-regime.md` — 7-state model, transition probabilities, regime-based signals
191
192**Options & Volatility:**
193- `reference/options-trading.md` — Greeks (1st + 2nd order), Black-Scholes, IV surface, vol smile, GEX, pin risk
194- `reference/options-strategies.md` — 25+ strategies: income, directional, volatility, advanced multi-leg
195- `reference/vix-volatility.md` — IV rank, VIX term structure, crisis thresholds, regime integration
196
197**Asset Classes:**
198- `reference/equities.md` — Sector rotation, scanner patterns, Kelly allocation, earnings plays
199- `reference/commodities.md` — Gold/Silver (COT, seasonal, dollar correlation), Oil (inventory, OPEC, contango)
200- `reference/forex.md` — Carry trade, rate differentials, PPP, central bank policy, COT positioning
201
202**Cross-Cutting:**
203- `reference/sentiment-signals.md` — Social filtering, multi-model consensus, noise detection
204- `reference/risk-management.md` — Position sizing, portfolio Greeks gates, drawdown limits, smart execution
205- `reference/pattern-recognition.md` — Candlestick + chart patterns
206- `reference/swarm-consensus.md` — Multi-LLM voting system
207- `reference/chinese-llm-stack.md` — Cost-optimized Chinese LLMs for trading
208
209**Workflow & Backtesting:**
210- `reference/daily-trading-workflow.md` — /loop + Desktop scheduled tasks for pre-market, open, intraday, EOD
211- `reference/backtesting-patterns.md` — Walk-forward, Monte Carlo, ensemble, combinatorial alpha discovery
212
213## Emit Outcome Sidecar
214
215As the final step, write to `~/.claude/skill-analytics/last-outcome-trading-signals.json`:
216```json
217{"ts":"[UTC ISO8601]","skill":"trading-signals","version":"2.1.0","variant":"default",
218 "status":"[success|partial|error]","runtime_ms":[estimated ms from start],
219 "metrics":{"signals_generated":[n],"tickers_analyzed":[n],"frameworks_applied":[n]},
220 "error":null,"session_id":"[YYYY-MM-DD]"}
221```
222Use status "partial" if some stages failed but results were produced. Use "error" only if no output was generated.
223</reference_files>