## [0.9.10] - 2026-04-07 - Drawing Caps, Linefill Dedupe & Live-Stream Throttle#182
Merged
alaa-eddine merged 3 commits intomainfrom Apr 7, 2026
Merged
## [0.9.10] - 2026-04-07 - Drawing Caps, Linefill Dedupe & Live-Stream Throttle#182alaa-eddine merged 3 commits intomainfrom
alaa-eddine merged 3 commits intomainfrom
Conversation
Fix : Data providers request loop in stream mode - Always throttle when on the last bar (isLastBar), regardless of closeTime - In the generator, throttle to minimum 1 second between API calls when only the last candle was updated (no new bars)
Fix : Optimized drawing objects
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
[0.9.10] - 2026-04-07 - Drawing Caps, Linefill Dedupe & Live-Stream Throttle
Added
max_*_countfor drawing objects: Box, label, line, and polyline helpers enforcemax_boxes_count,max_labels_count,max_lines_count, andmax_polylines_countfromcontext.indicator(defaults 50). When the active count exceeds the limit, the oldest non-deleted objects are marked deleted (FIFO), matching TradingView-style caps and avoiding unbounded growth.linefill.new()pair deduplication: If a linefill already exists between the same two lines (either order), the existing object is updated in place (color, bar) instead of appending another — same behavior as TradingView whenlinefill.new()runs every bar without deleting the previous fill.force_overlayfor linefills:LinefillObject.toPlotData()setsforce_overlaywhen either referenced line uses it;syncToPlot()emits__linefills_overlay__as a separate overlay plot (aligned with box/line/label splitting).plot()resolvesoptions.colorwhen it is a bound function (e.g.chart.fg_color,chart.bg_color) by calling it, so theme-driven colors work like on TradingView.Fixed
runLiveis on the last bar (caught up to the feed), the per-iteration delay now always runs, even ifcloseTimeis still in the past — avoids tight loops that ignoreinterval. When a fetch only updates the last candle (no new bars), adds a minimum ~1 s spacing between API calls after the request completes, reducing provider hammering while a candle is forming or the market is quiet.