PyneComp v6.0.69 — Legacy scripts convert more faithfully, and several scripts that used…

Fixes

  • A script with more than one //@version line (e.g. a v6 script that also carries an old //@version=5 comment) now follows the first one, like TradingView, instead of failing with “Empty document.”
  • array.from() mixing int and float values (e.g. array.from(0, 10e6)) now creates a float array, as on TradingView.
  • A legacy input() value read with history (e.g. nz(state[1])) no longer crashes on the first bar.
  • A method call on a built-in series such as close.my_method(len) now compiles instead of failing at import.
  • In v3/v4 strategies, a strategy.exit() without a price level no longer closes the position at market. It now behaves as on TradingView, and a trail_offset-only exit no longer converts to code that doesn’t compile.
  • A pre-v6 bool that can be na now keeps its meaning through switch statements and in plotshape() marker conditions.
  • Pre-v5 session strings written without days (e.g. "0930-1600") keep their original Monday-to-Friday meaning in time() / time_close().

Features

  • Converting a script now goes straight to v6 in one step, and the result stays valid Pine you can paste back into TradingView.