build_trade_plan
Build a sized trade plan: entry, stop, share count, R targets, invalidation.
The answer to "what do I do?": given account equity and the percent of it
you are willing to risk, returns an entry reference (last close), a
structural stop (tighter of recent swing level or 2x ATR, never inside
daily noise), the exact number of shares so a stop-out loses only the
risk budget, 1R/2R/3R targets, a liquidity check (order as % of 20-day
turnover), and a one-line invalidation. Educational analysis, not
investment advice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| equity | Yes | ||
| period | No | 1y | |
| ticker | Yes | ||
| risk_pct | No | ||
| direction | No | long |