PyneComp v6.0.82 — scripts that TradingView rejects are now refused with a clear error,…

Fixes

  • import someone/class/1, an input.source whose default is another input, and an undeclared type such as array.new<foo> now stop with a compile error at the right line instead of producing a script that fails when it runs (#110)
  • A function that returns a tuple from a library call inside an if without else no longer crashes on bars where the if is not taken; both values are na, as on TradingView (#110)
  • v4 plots without transp keep their color’s own transparency, so a line meant to be invisible stays invisible (#111)
  • v5 bool variables that can be na now stay na where TradingView keeps them: typed bool declarations with an na branch, and bool fields of user types checked with na() (#111)
  • s == na and s != na on a string variable now test for na correctly (#111)
  • Converted v4/v5 scripts keep their meaning in more places: ta.change() on conditions, int(math.floor(a / b)), and transp on colors with their own transparency
  • A map type whose key or value is a built-in type such as color no longer fails to load
  • A string literal that continues onto the next line inside parentheses now compiles correctly

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