PyneCore v6.10.5 released — strategy() defaults now follow current Pine v6, margin-reject…

Behavior change

  • strategy() defaults: initial_capital 100000, default_qty_type strategy.percent_of_equity, default_qty_value 100 — set them explicitly to keep previous results

Fixes

  • Margin-rejected reversals, strategy.order and orphaned strategy.exit orders 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 with calc_on_order_fills
  • New close_by_id switch keeps Pine v4/v5 same-bar strategy.close() behavior
  • ta.highest, ta.lowest, ta.highestbars, ta.lowestbars, ta.linreg pick their machine from the qualifier of length
  • calc_bars_count now limits request.security() and request.security_lower_tf() contexts too
  • request.currency_rate() accepts ignore_invalid_currency and never reads an unclosed rate bar
  • color.new, color.rgb, color.t and color.from_gradient match TradingView’s transparency and gradient mixing
  • Two scripts with the same file name no longer share a cached module; deeply nested switch chains no longer hit RecursionError

Performance

  • Script transform time down 35%, then another 12%, measured over 912 real-world scripts
  • Unconsumed chart-level request.security contexts are served inline

Full release notes: https://github.com/PyneSys/pynecore/releases/tag/v6.10.5