Skip to content

Enums seem to be not supported? #10

Description

@folknor

Hi!

This valid pinescript v6 code isn't really syntax highlighted at all, which leads me to believe that the concept of enums is missing from the language runtime?

Image
//@version=6

enum CandleType
    None
    Regular
    Doji

type Candle
    CandleType ct
    bool bullish
    bool bearish

enterConditions = input.enum(
     CandleType.Regular,
     title = "Enter conditions")

Candle currentCandle = Candle.new()
currentCandle.ct := CandleType.Regular
currentCandle.bullish := false
currentCandle.bearish := false

Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions