Expand model tag support: add GLM-5.1, simplify Anthropic IDs, scan tags anywhere in message

- Flink update_bars debouncing
- update_bars subscription idempotency bugfix
- Price decimal correction bugfix of previous commit
- Add GLM-5.1 model tag alongside renamed GLM-5
- Use short Anthropic model IDs (sonnet/haiku/opus) instead of full version strings
- Allow @tags anywhere in message content, not just at start
- Return hasOtherContent flag instead of trimmed rest string
- Only trigger greeting stream when tag has no other content
- Update workspace knowledge base references to platform/workspace and platform/shapes
- Hierarchical knowledge base catalog
- 151 Trading Strategies knowledge base articles
- Shapes knowledge base article
- MutateShapes tool instead of workspace patch
This commit is contained in:
2026-04-28 15:05:15 -04:00
parent d41fcd0499
commit 47471b7700
184 changed files with 9044 additions and 170 deletions

View File

@@ -0,0 +1,46 @@
---
description: "A neutral low-cost debit strategy buying an OTM call at K1, selling two ATM calls at K2, and buying an ITM call at K3 with equidistant strikes, profiting if stock stays near K2."
tags: [options, income, neutral, butterfly]
---
# Long Call Butterfly
**Section**: 2.40 | **Asset Class**: Options | **Type**: Income
## Overview
The long call butterfly is a sideways strategy consisting of a long OTM call at K1, a short position in two ATM calls at K2, and a long ITM call at K3. The strikes are equidistant: K2 - K3 = K1 - K2 = kappa. This is a relatively low cost net debit trade. The trader's outlook is neutral. This is a capital gain strategy.
## Construction
- Buy 1 call option at strike K1 (OTM, upper wing)
- Sell 2 call options at strike K2 (ATM, body)
- Buy 1 call option at strike K3 (ITM, lower wing, K3 < K2 < K1)
- All same expiry; K2 - K3 = K1 - K2 = kappa (equidistant)
Net debit: D
## Payoff Profile
f_T = (S_T - K1)+ + (S_T - K3)+ - 2 × (S_T - K2)+ - D
- Lower breakeven: S*_down = K3 + D
- Upper breakeven: S*_up = K1 - D
- Max profit: P_max = kappa - D (achieved at S_T = K2)
- Max loss: L_max = D (if S_T <= K3 or S_T >= K1)
## Key Conditions / Signals
- Neutral; expects stock to pin near K2 at expiry
- Low implied volatility after entry reduces theta bleed on short options
- Low cost structure makes it an efficient way to bet on stability
## Variations
### 2.40.1 Modified Call Butterfly
A variation where the strikes are no longer equidistant; instead K1 - K2 < K2 - K3. This results in a sideways strategy with a bullish bias. We have:
f_T = (S_T - K1)+ + (S_T - K3)+ - 2 × (S_T - K2)+ - D
- Breakeven: S* = K3 + D (single breakeven on the lower side)
- Max profit: P_max = K2 - K3 - D (at S_T = K2)
- Max loss: L_max = D
## Notes
The equidistant butterfly has two breakevens symmetric around K2. The maximum profit is the wing width kappa minus the debit. Low-cost entry makes the risk/reward ratio attractive for neutral views.