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 cmoran13, 04-16-2026, 01:02 PM
    0 responses
    43 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    25 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    162 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    98 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    157 views
    2 likes
    Last Post CaptainJack  
    Working...
    X