PyneCore v6.8.1 released — a release about scripts that used to stop dead: most of these…
Fixes
- An
naarray index no longer haltsarray.get,set,remove,insert,slice,fill,percentrank,max,minor the percentile functions — TradingView’s measured answers are returned instead - A float index, from a division or
math.round, is truncated across thearrayandmatrixnamespaces instead of halting for row in mover a matrix works, and anarray.sliceview is writable and live:push,insert,pop,clearno longer raiserequest.seedkeeps the arity of a tuple expression, so the compiled destructuring no longer dies on “na is not iterable”str.splitwith an empty separator splits into characters,str.replacepicks the right occurrence, andmath.randomwithout a seed no longer returnsnaon every draw- Discarded body executions —
calc_on_order_fills, live ticks — no longer leave their drawings and plot columns behind, and a Pine.copy()on a label, line or box registers the clone instead of orphaning it time(timeframe="1M", timeframe_bars_back=1)landed in the wrong month on an uneven grid- More than a dozen parameter names now match Pine’s spelling, so a named argument stops raising
TypeError(str.contains,math.toradians,color.rgb,ta.alma,str.replace,na,map.put_alland others)
Features
strategy.opentrades.capital_held,array.new_table, and four newlabelsetters- Overload dispatch selects on the exact argument type, including a typed
na
Performance
- The
naguard on the per-bar path: 18.3 ns to 5.8 ns for a non-navalue;na(float)from 0.147 s to 0.039 s per million calls
Full release notes: https://github.com/PyneSys/pynecore/releases/tag/v6.8.1