PyneComp v6.0.26 — Bug Hunting Edition

This release fixes 8 issues that affected valid Pine Script v6 code.

Const expression handling

input.*() return values and enum fields are now properly recognized as const. This means expressions like these no longer fail:

myEnum = input.enum("Mode", ...)
input.int("Length", active = myEnum == MyEnum.Option1)

Previously, variables derived from input.*() or enum comparisons were incorrectly rejected as “non constant argument” in parameters like active, group, or tooltip.

Parser & syntax improvements

Several valid Pine Script constructs that were previously rejected now compile correctly:

// Multi-line expressions inside parentheses — any indentation now works
plot(ta.sma(
    close, 20))

// Exported variables in libraries
export const float MY_CONSTANT = 0.3

// Enum types as map keys
map<Signal, float> scores = map.new<Signal, float>()

// Method calls on subscripted expressions
(history[2]).size()

// Extra whitespace between else and if
else  if condition

New built-in types

Added support for footprint and volume_row types.


If you previously got compilation errors on valid Pine Script v6 code, try again — there’s a good chance it works now ✅