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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    37 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    14 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X