PyneComp v6.0.52 — converted scripts now come back looking like the script you gave it,…

Fixes

  • Converting a library that used export type or export enum produced a script that would not compile — TradingView’s own published ZigZag/7 library was one of them
  • Trailing spaces inside a multi-line text literal are part of the text your script prints, and are no longer removed
  • A linewidth value is no longer rewritten into a math.max(1, ...) call when it could never have been too small anyway

Features

  • Conversion keeps your formatting: comments stay on their own lines at the column you put them, blank lines keep their original spacing, and comments on lines that get merged are kept in order without ever swallowing code
  • Converted scripts keep their original behaviour: Pine quietly changed what some code means between versions, and a v4/v5 script converted to v6 now has those differences written into the script itself — including the older strategy() defaults for margin_long, margin_short and initial_capital — so it still trades the way it did before conversion
  • The TradingView-identical conversion mode is unchanged and still reproduces TradingView’s output exactly