Repository navigation
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-live1.12.x and 1.13.x can misread a strategy library built with other headers under the same layout stamp (#1041). Upgradepineforge-livetogether 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.reducegroups; 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.risklimits; margin at every print in ticks mode; loss-day rules. request.security: the empty timeframe is the chart's;lookahead_onreads the final higher-timeframe value on historical bars; requestedta.emawarm-up andta.vwaptrade-day restart; monthly timeframe seconds.- Built-ins: chart EMA seeding from the simple average of its first
lengthvalues;ta.smawindow sum;ta.rciuses average ranks for ties and a flat window isna;mom,roc,rising,falling,cci,variance,dev,median,mode,wma,hma,vwma,stdevandrcigive the right value after a bar is recalculated to or fromna; integer-limit overflow fixes. - Time and calendar:
timeframe.changeon N-day timeframes;time()andtime_close()reading a later bar; day, week and month boundaries in named time zones use the offset at the boundary; dates before 1970 andstr.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
trueandfalseare honoured in inputs and overrides;run_strategy.py --runner dockerpassesqty_stepandmincontract. - Live:
backtest_fill_limits_assumptionapplies 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::SMAandta::StdDevlayouts changed, so C++ objects must be rebuilt;BrokerStateHashSink::stakesstd::string_view;strategy_release_run_results_v1()is new; the live layout stamp goes from 5 to 12.