Skip to content

fix: hold last values for history-reading UDF series parameters at skipped callsites - #109

Merged
luisleo526 merged 1 commit into
mainfrom
fix/udf-callsite-history-hold-last
Aug 12, 2026
Merged

fix: hold last values for history-reading UDF series parameters at skipped callsites#109
luisleo526 merged 1 commit into
mainfrom
fix/udf-callsite-history-hold-last

Conversation

@luisleo526

Copy link
Copy Markdown
Contributor

Gate

pr-gate PASS — engine corpus zero regressions, scraped entering excellent+strong >= leaving.

Verdict: /Users/haoliangwen/code/pineforge-lab/pr-gate-verdict.json

🤖 Generated with Claude Code

…ipped callsites

TradingView keeps a per-requested-context history for user-defined-function
series parameters: when a callsite is skipped on a bar (conditional execution),
the parameter's series holds its last value rather than recording na, and
history references read that held series per callsite. The generated code
recorded na on skipped bars, desynchronizing every strategy whose UDF reads
parameter history behind a condition.

Evidence: browser-oracle discriminators udf-callsite-series-parameter-hold-last
(four-model: TV=LLLL vs engine LSSL) and requested-context-udf-callsite-history-
hold-last-and-last-invocation (eight-model: TV=LLLL vs LSLL); matrix
codegen-dub4art-chart-udf-callsite-history-hold-last-full-e8: the fix cell is an
exact closed-trade MATCH (digest e3ba507f) on the full 305-trade dub4art tape vs
all-off DIVERGENCE; promotion promote-udf-holdlast-e829: PASS — band 1 entering
(dub4art weak->excellent) / 0 leaving, corpus 312/312 zero regressions,
tapes at corpus head 95074e0 unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@luisleo526
luisleo526 merged commit f8a1418 into main Aug 12, 2026
9 checks passed
@luisleo526
luisleo526 deleted the fix/udf-callsite-history-hold-last branch August 12, 2026 04:33
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.

1 participant