PyneComp v6.0.65* — a script that uses a numeric ternary as a condition, like if a and…

Fixes

  • Converting or compiling a Pine script where a numeric ? : expression with an na branch is used inside an if condition failed with an internal error (HTTP 400 from the API). It now converts exactly the way TradingView does, keeping the na inside the bool() wrap.
  • Conversions involving integer division of constants, such as 3 / 100 or high[N / 2], are now verified against TradingView’s current output in the test suite, so the int() wrapping stays correct.