Skip to content

Options read by direction: labels, stats and AI - #51

Merged
simonro merged 3 commits into
mainfrom
feat/option-direction
Nov 10, 2026
Merged

simonro merged 3 commits into
mainfrom
feat/option-direction

Conversation

@simonro

@simonro simonro commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

A viewer asked whether the journal understands that buying AAPL puts is a short trade. Until now it labelled option trades by the opening side, so a bought put showed as Long and a sold put or put credit spread showed as Short.

Labels

  • Option trades now show their directional bias: bought puts and sold calls are Bearish, sold puts, put credit spreads and bought calls are Bullish.
  • A tooltip keeps the mechanics, for example "Put credit spread (stored side: Short)".
  • Stocks and futures keep Long / Short.
  • This applies to the Dashboard, Trades, Trade View, Day Review, Leak Finder and Exit Lab.

Stats

  • The Reports breakdown is now "Bullish vs Bearish".
  • The Leak Finder direction dimension counts options by bias.
  • Leak ids stay side:LONG / side:SHORT, so nothing saved breaks.

AI

  • Diary photo and text analysis, Day Review, Brain and the weekly summary used to send only the opening side, so a bought put reached the model as "LONG".
  • Option trades now go to the model as, for example, "LONG (bought put, bearish)" or "SHORT (sold put, bullish)".

The stored side does not change, so fills, R and P&L are unaffected.

Tests: backend 349 passed (new test_direction_uses_option_bias_not_opening_side and tests/test_ai_side.py), frontend 93 passed, CI=true build clean.

Known limit: a covered call from the wheel shows Bearish on its own, since the label does not know about the shares.

🤖 Generated with Claude Code

tapetoedge and others added 3 commits November 9, 2026 20:06
A sold put or a put credit spread is stored SHORT, but the trade is bullish, so the
old label misled. Option trades now display their directional bias (tooltip keeps the
mechanics and the stored side). Stocks and futures keep Long / Short. The stored side
is unchanged, so fills, R and P&L are not affected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Short puts and credit spreads now land in the bullish bucket, long puts in the
bearish one. Leak ids stay side:LONG / side:SHORT so saved leaks keep working.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The prompts sent only the opening side, so a bought put reached the model as LONG.
Diary photo and text, Day Review, Brain and the weekly summary now send option trades
as e.g. "LONG (bought put, bearish)" or "SHORT (sold put, bullish)". Stocks and futures
are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simonro simonro changed the title Options show Bullish or Bearish, and stats count them by direction Options read by direction: labels, stats and AI Nov 10, 2026
@simonro
simonro merged commit 1e85322 into main Nov 10, 2026
3 checks passed
@simonro
simonro deleted the feat/option-direction branch November 10, 2026 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants