PyneComp v6.0.61 — three conversion and compilation bugs that silently changed what a…
Fixes
- A variable declared as
var x = input.something(...)now keeps the value you assign to it with:=. Before, it snapped back to the input’s default value on the next bar, so any counter or state seeded from an input was reset on every bar. - Converting a script whose function body is written on the line after
=>now produces Pine that compiles. Before, the converted script could be rejected by TradingView, because the body was read as a continuation of the function header instead of as the function’s own block. - A variable declared by an
ifwith noelsenow keeps its last assigned value across bars when the script reads its history with[n], matching TradingView. Before it was reset tonaon every bar where no branch fired, so any[1]lookback on such a variable readnainstead of the previous value.