PyneComp v6.0.81 — Compiled and converted scripts now match TradingView more closely on…

Fixes

  • A var or varip variable initialized with an if, switch, for or while block now runs that block only until it yields a value, then never again, as on TradingView
  • A v6 for loop whose to bound calls a function now evaluates the header in TradingView’s order; converted v4/v5 loops read a changing bound once, as the old versions did
  • Local variables named like built-in variables or namespaces, or that shadow an outer variable they read, no longer break the compiled script
  • for ... in over a map is now handled correctly
  • Converting a line like plot(a, "a"), plot(b, "b"), plot(c, "c") no longer produces a script that fails at run time
  • A // inside a string (a URL, for example) is no longer mistaken for a comment during conversion
  • Errors in converted v4/v5 scripts now point to the right line
  • Code that TradingView rejects now gets the same error when compiled, for example history of a loop variable or assigning to a built-in variable

This website uses cookies and similar technologies. By continuing to use the site, you accept this. Details in our Privacy Policy.