PyneComp v6.1.5 — converted scripts now evaluate parenthesized arithmetic the way…

Fixes

  • Expressions like a + (b - c), a * (b * c) or x += (y + z) could come out a hair off TradingView’s values, because TradingView regroups some parentheses depending on the Pine version and on whether the values are constants, inputs or series. Converted scripts now follow the same rules, so these results match TradingView.
  • Pine v1 and v2 scripts using security() were converted as if they used lookahead_off, which shifted the values by a full higher-timeframe period, even with the usual expression[1] pattern. The converted call now keeps lookahead = barmerge.lookahead_on, as TradingView runs these versions.

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