PyneComp v6.0.68 — Converted and compiled scripts now match TradingView's results more…

Fixes

  • A function that reads an outside series with [n] (for example s[1]) and is called only on some bars now gets the value from its previous call, as on TradingView. Before, it got the previous bar’s value, which could produce very different plots.
  • Converting a v4 script with a line like qty := (qty * close >= strategy.equity) ? a : b no longer turns it into a different calculation. The comparison stays as written instead of being folded into qty *=.
  • Converting v5 scripts to v6 now keeps parentheses that change the result, such as ma * ((100 + lvl) / 100) * mult. Before, they were dropped, and plotted values could be off by a tick after rounding.
  • last_bar is no longer treated as a built-in variable, since it does not exist in Pine Script.