You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c8993aa
Browse filesBrowse the repository at this point in the historyBrowse files
engine: TradingView's sliding-window sum re-sums when the compensation's magnitude, added to the source, is under-applied (round 10, family W stage 2: onuriano/jayentriken stochRSI residue plateaus)
The re-sum trigger of KahanWindowSum (ta.sma, math.sum) reads
|fl(x + |c|) - x| < |c| instead of round 9's |fl(x - c) - x| < |c|: the
quantity TradingView tests is the compensation's MAGNITUDE added to the
incoming source. On ordinary sources (|c| << |x|) both forms round alike; on
residue-only plateaus (|x| ~ 1e-15 ~ |c|), on sources within |c| of a power
of two, and on negative sources they differ and TradingView follows x + |c|
(its decision flips under negation of the series). Eviction, add and the
post-re-sum state are unchanged.
Pinned by pineforge-workflow r9-famW-5 on 21,509 labelled decisions: the
onuriano and jayentriken NYSE:F@15 oracles (math.sum(stoch, 3) 7,018/7,018,
math.sum(k, 3) 7,016/7,016 each, bit-exact; round 9: 6,920 and 6,991), the
stdev sums 7,029/7,029 x2, and 1,003 lab tv literal replays (dense +-40 ulp
neighbourhoods, sign mirrors, binade straddles, window lengths 3 and 5).
test_ta_window_round10 carries 15 oracle segments and 57 literal replays
(24 decide differently under the round-9 form); test_ta_window_underapplied
is unchanged and still bit-exact.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
0 commit comments