PyneCore v6.5.1 released — Patch release on the 6.5 line: TradingView-parity fixes across…

Fixes

  • Same-bar close_all after a partial close no longer overshoots into a phantom opposite trade, and multiple same-bar partial closes for one entry now all fill
  • Sparse single-period D/W/M request.security keeps its gaps_off forward-fill instead of writing na, and HTF lookahead_off confirms on the period’s own last bar (#66)
  • Empty-array reducers (array.avg/sum/min/max/...) return na instead of raising; array.new_*(na) makes an empty array
  • ta.correlation, ta.crossover and ta.crossunder stay valid across na gaps; an na series subscript now resolves to the current bar (high[na] == high[0])
  • Multi-period D/W/M aggregation (2D, 3W…) is now trading-day- and holiday-aware (#65)
  • Added strategy.netprofit_percent, strategy.openprofit_percent and strategy.max_drawdown_percent

Performance

  • O(1) drawing registries enforcing Pine’s max_*_count caps, memoized overload dispatch, and a native range for integer for-loops

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