Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CS1519 class member declaratione expected

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

    CS1519 class member declaratione expected

    Hello,

    Am facing this error from last week.
    1. I have a 4 .cs file one related to another
    letus say a,b,c,d.
    a.cs file is the main one am insert here setdefault some code
    Code:
    Calculate = Calculate.OnEachTick;
                        IsOverlay = true;
                        DisplayInDataBox = true;
                        DrawOnPricePanel = true;
                        DrawHorizontalGridLines = true;
                        DrawVerticalGridLines = true;
                        PaintPriceMarkers = true;
                        ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Right;
    in this file there is no error.
    *but the thing b.cs file related to this for exmple under a namespace class b as created .
    * ut am geeting error in the b.cs file class member declaratione expected so on see attacment.
    Code:
     public void AddVolume(double price, long volume, TradeSide side, DateTime time, int barIdx)
            {
                if (ladder.Count == 0)
                {
                    Begin = time;
                    BeginBarIdx = barIdx;
                }
                End = time;
                EndBarIdx = barIdx;
    
                AddVolume(price, volume, side);
                close[barIdx] = price;
            }
            
    //    }            //newly added 
            public long GetPOCVolume() => ladder.Max(kv => kv.Value);//here is the problem
            public long GetPOCVolume(TradeSide side) => [ladderBidAsk(int)side].Max(kv => kv.Value);
    
            public long Volume() Volume => ladder.Sum(kv => kv.Value);
    
            public bool IsEmpty() => ladder.Count == 0;
    the above mentioned b.cs file having the error

    in the b.cs file there no any onstate bar setdefaults method just it created public class b. but a.cs file contains all these methods.
    Please send me solutione asap am wasting the lot of time ...
    Last edited by [email protected]; 05-07-2017, 06:31 AM.

    #2
    Hello [email protected],

    Thank you for your post.

    This case is referring to the same errors as the case at the following link: http://ninjatrader.com/support/forum...d.php?p=506297
    Please refrain from making multiple threads on the same item and please follow up with me on the other thread.

    I look forward to assisting you further.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    585 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    340 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
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    552 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X