PyneComp v6.0.81 — Compiled and converted scripts now match TradingView more closely on…
Fixes
- A
varorvaripvariable initialized with anif,switch,fororwhileblock now runs that block only until it yields a value, then never again, as on TradingView - A v6
forloop whosetobound 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 ... inover amapis 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