Skip to content

Cannot eval style = plot.style_columns #50

@dcaoyuan

Description

@dcaoyuan

I tried the tests' code:

https://github.com/QuantForgeOrg/PineTS/blob/main/tests/indicators/macd-pinescript.test.ts#L30

The result of pineTS.run(...) cannot resolve style=plot.style_columns to style: 'style_columns', style property will be undefined.

But if I change it to style = 'style_columns', it then works correctly:

plot(hist, title = "Histogram", style = 'style_columns', color = (hist >= 0 ? (hist[1] < hist ? #26A69A : #B2DFDB) : (hist[1] < hist ? #FFCDD2 : #FF5252)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions