Repository navigation
Should verified snapshots disclose partial indicator windows and initialization? #1505
Unanswered
MikasaMumei
asked this question in
Q&A
Replies: 1 comment
|
I'd go with your first option, applied only to finite rolling windows, plus documentation for the smoothed family. Why the two families need different treatment
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I would like to confirm the intended output contract before proposing any change to calculations or indicator availability.
On main
1394a3f, with stockstats 0.6.9, a verified snapshot with synthetic closes 1 through 81 returnsclose_200_sma = 41.00. This matches the dependency's partial-window behavior. With 200 rows it is 100.50, and with 201 rows it is 101.50. The snapshot does not disclose the 81-observation coverage; its recent-closes table displays at most 30 rows.An offline audit of all 13 Yahoo indicator names found several different initialization contracts in the installed dependency's upstream source:
VWMA and MFI are in the Yahoo indicator tool catalog, but not in the default snapshot set. These are observations of stockstats 0.6.9, not assumptions about Alpha Vantage or all allowed dependency versions.
Minimal offline reproduction in an existing TradingAgents environment:
The two SMAs and Bollinger middle each render as 7.00 despite their different requested windows. The bands are also numeric. The market analyst is instructed to use this snapshot for exact indicator claims, so the distinction may matter for short-history instruments. This does not establish an effect on final model decisions.
I also compared an oscillating 201-row history with its own trailing subsets. With identical final 26 observations, Bollinger and VWMA matched, while EMA, MACD, RSI, and ATR still differed. I would therefore avoid declaring those smoothed indicators fully initialized at an arbitrary period count.
I saw that #904, which included strict-window checks, was closed as superseded by the verified snapshot. I do not read that as an explicit decision on initialization disclosure.
Would you prefer:
My preference is the first option for finite rolling windows, with documentation for the other families. Coverage would follow each indicator's actual input and analysis cutoff, not calendar days or the displayed recent-row count. I would keep full-window output unchanged and avoid applying one blanket minimum-history rule to every indicator. No switch to N/A or algorithm change is proposed here; Yahoo profile averages remain a separate source.
All reactions