PyneComp v6.0.56 — v4 and v5 scripts that used to come back broken now convert cleanly:…

Fixes

  • Converting a Pine v4 script that assigns a number to a bool variable (var bool flag = 0, then flag := 1) no longer produces a script that fails with a type error — the numbers are converted to true/false the way v4 read them
  • strategy.entry, strategy.order, strategy.exit, strategy.close_all and strategy.cancel_all calls that pass their when condition positionally instead of by name are now converted to a v6 if block; before, the condition was left in place and the converted script was wrong
  • A bool variable initialized to na keeps its na in the converted script, so the script’s own na(x) checks still mean what they meant. Pine v6 has no na boolean, so the editor now warns on every place TradingView itself will reject — you see it while editing instead of after pasting
  • A statement whose continuation line is separated from it by a blank line is now folded back into one line, as TradingView’s own converter does; before, the leftover tail was treated as a statement of its own and the conversion failed to parse