pine-parser 0.2.2

Parser for Pine Script.
Documentation
1
2
3
4
5
6
7
8
//@version=6

// Subjectless switch: boolean-condition arms, no expression after `switch`.
// Parses as `switch true`, so an arm matches when its condition is true.
result = switch
    close > open => 1
    close < open => -1
    => 0