Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

invalid token 1519 error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    invalid token 1519 error

    hello,
    I heve the error
    Code:
    public long GetPOCVolume() => ladder.Max(kv => kv.Value);
    
            public long GetPOCVolume(TradeSide side) => ladderBidAsk[(int). side].Max(kv => kv.Value);
    
            public long Volume() => ladder.Sum(kv => kv.Value);
    
            public bool IsEmpty() => ladder.Count == 0;
    Invalid token of (,=> and ) in class,struct and interface
    am using the 4.5 .net frame work

    #2
    Thank you for your question [email protected] . Since => is used in some programming languages (linked documentation publicly available) to mean "then", to clear up ambiguity, most languages use >= to mean "greater than or equal to". If you change your => to >= your code should compile. Please let us know if there are any other ways we can help.
    Jessica P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    595 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    554 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X