PyneCore v6.5.4 released — another round of TradingView backtest parity: large-equity…

Features

  • request.security(ticker.heikinashi(sym), tf, expr) now evaluates on Heikin Ashi candles (higher-timeframe aware, backtest file-backed only)
  • calc_bars_count honored — only the last N chart bars are calculated, earlier bars advance bar_index but feed no series

Fixes

  • Strategy at large equity matches TV: integer-tick margin-call trigger/cover, a per-close margin check, and a big-money entry sizing/margin gate
  • Trailing stops: intrabar walk ordered correctly against margin calls, a changed-params re-issue re-arms from the bar close, and trail_offset is truncated to whole ticks
  • Default-sized (percent_of_equity / cash) limit/stop orders size at the fill price, not the placement close; TV’s resting buy-limit margin asymmetry reproduced
  • Two-ledger FIFO trade close for pyramided positions: rows attributed FIFO while each bracket settles against its own from_entry quantity
  • Builtin methods on na (e.g. naLine.delete()) dispatch as no-ops by declared type; compiled-script __ren__ names resolved in shadow-fallback and overload dispatch (ta.crossover regression)

Performance

  • request.security() on macOS no longer polls per bar — security-context runs are several times faster with byte-identical output

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