Skip to content

v1.15.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 21:40
· 23 commits to main since this release

PineForge engine 1.15.0

Breaking: C ABI 5 → 6. Rebuild your modules.
Strategy modules built against ABI 5 do not load in 1.15.0. Rebuild every module against the 1.15.0 headers. The loaders check the ABI stamp and refuse a module built for another ABI.

Known issue

  • pineforge-live 1.12.x and 1.13.x can misread a strategy library built with other headers under the same layout stamp (#1041). Upgrade pineforge-live together with the engine and rebuild your modules; the ABI 6 stamp in this release enforces that pairing.

What changed since 1.14.0

The full list is in CHANGELOG.md, section 1.15.0. Changes to Pine behaviour were measured on TradingView with our own test scripts, except where a line says otherwise; the runner and C++ lines are not TradingView readings.

  • Order semantics: close, reversal and pyramiding cases; same-cycle entry order; OCA group keys and strategy.oca.reduce groups; cancel groups; stop-limit activation; limit penetration and exit level selection.
  • Order sizing: cash and percent-of-equity amounts convert to contracts at the fill; a zero cash or percent amount places no order.
  • Risk and margin: strategy.risk limits; margin at every print in ticks mode; loss-day rules.
  • request.security: the empty timeframe is the chart's; lookahead_on reads the final higher-timeframe value on historical bars; requested ta.ema warm-up and ta.vwap trade-day restart; monthly timeframe seconds.
  • Built-ins: chart EMA seeding from the simple average of its first length values; ta.sma window sum; ta.rci uses average ranks for ties and a flat window is na; mom, roc, rising, falling, cci, variance, dev, median, mode, wma, hma, vwma, stdev and rci give the right value after a bar is recalculated to or from na; integer-limit overflow fixes.
  • Time and calendar: timeframe.change on N-day timeframes; time() and time_close() reading a later bar; day, week and month boundaries in named time zones use the offset at the boundary; dates before 1970 and str.format_time.
  • Sessions: daily range start; per-window session grids (derived from the session text, not yet measured at 60 minutes for every exchange).
  • Inputs and runs: a malformed numeric or boolean override stops the run and names the input; JSON true and false are honoured in inputs and overrides; run_strategy.py --runner docker passes qty_step and mincontract.
  • Live: backtest_fill_limits_assumption applies on every live input path; order events reported by the live runner equal replay, and stream paths match replay (checked against replay, not TradingView).
  • C++ users: ta::SMA and ta::StdDev layouts changed, so C++ objects must be rebuilt; BrokerStateHashSink::s takes std::string_view; strategy_release_run_results_v1() is new; the live layout stamp goes from 5 to 12.