PyneCore v6.10.5 released — strategy() defaults now follow current Pine v6, margin-reject…
Behavior change
strategy()defaults:initial_capital100000,default_qty_typestrategy.percent_of_equity,default_qty_value100 — set them explicitly to keep previous results
Fixes
- Margin-rejected reversals,
strategy.orderand orphanedstrategy.exitorders behave like TradingView - Gapped default-sized stop orders are sized at their placement price
- A fired partial
strategy.close()no longer re-fills on every later bar withcalc_on_order_fills - New
close_by_idswitch keeps Pine v4/v5 same-barstrategy.close()behavior ta.highest,ta.lowest,ta.highestbars,ta.lowestbars,ta.linregpick their machine from the qualifier oflengthcalc_bars_countnow limitsrequest.security()andrequest.security_lower_tf()contexts toorequest.currency_rate()acceptsignore_invalid_currencyand never reads an unclosed rate barcolor.new,color.rgb,color.tandcolor.from_gradientmatch TradingView’s transparency and gradient mixing- Two scripts with the same file name no longer share a cached module; deeply nested
switchchains no longer hitRecursionError
Performance
- Script transform time down 35%, then another 12%, measured over 912 real-world scripts
- Unconsumed chart-level
request.securitycontexts are served inline
Full release notes: https://github.com/PyneSys/pynecore/releases/tag/v6.10.5