Commit e9e9c1f
Add volume trend, the last two weeks against the last quarter
rel_volume answers "is today unusually busy for this name" against
its own average. It doesn't say whether that elevation is new: a
name that has been running hot for two weeks has already lifted its
own 10-day average, so a rel_volume near 1 today can still sit on
top of a base that is well above the quarter's norm.
volume_trend is avg_volume_10d over avg_volume_3m as a percent — 100
is business as usual, above says the recent pace has been running
hot against the longer baseline, below says it has gone quiet. Both
inputs are Yahoo's own rolling averages, not today's tape, so it
classifies STATIC_SAFE the same way sma_spread does.
Synthetic test in test_screen.py covers both directions by hand.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H5vZPCuSPyqkdbXKa3UrEV1 parent 34d4433 commit e9e9c1f
3 files changed
Lines changed: 36 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
| |||
179 | 182 | | |
180 | 183 | | |
181 | 184 | | |
| 185 | + | |
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
273 | 281 | | |
274 | 282 | | |
275 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
709 | 732 | | |
710 | 733 | | |
711 | 734 | | |
| |||
0 commit comments