fix: hold last values for history-reading UDF series parameters at skipped callsites - #109
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gate
pr-gatePASS — engine corpus zero regressions, scraped entering excellent+strong >= leaving.Verdict:
/Users/haoliangwen/code/pineforge-lab/pr-gate-verdict.json🤖 Generated with Claude Code