Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

indicator

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

    indicator

    Hi,
    I have error under the on bar update method.
    Code:
     protected void DisposeUnmanagedGraphics()
            {
                BuyLadderBrushDx?.Dispose(); BuyLadderBrushDx = null;
                SellLadderBrushDx?.Dispose(); SellLadderBrushDx = null;
                PositiveDeltaBrushDx?.Dispose(); PositiveDeltaBrushDx = null;
                NegativeDeltaBrushDx?.Dispose(); NegativeDeltaBrushDx = null;
                ChartBackgroundBrushDx?.Dispose(); ChartBackgroundBrushDx = null;
            }
    This is my portione of code in thexyz.cs file the method name protected void DisposeUnmanagedGraphics()
    erroris expressione expected and class member declaratione expected please could reply me how to resolve this one .
    INside the regione properties the generated complete code will error sample code is like that
    Code:
    [Display(Name = "Mode", GroupName = "01. Profile", Order = 0)]
            public ProfileMode ProfileMode
            { get; set; } = ProfileMode.Volume;
    
            [Display(Name = "Show Delta", GroupName = "01. Profile", Order = 1)]
            public bool ShowDelta
            { get; set; } = false;
    This code expecteing class member declaratione error

    #2
    Thank you for your question [email protected] . Can you copy the message you are getting either in the bottom portion of the NinjaScript editor or the Logs tab of the control center regarding class member declarations? The exact message text will help us give you the best help possible.
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by [email protected] View Post
      Hi,
      I have error under the on bar update method.
      Code:
       protected void DisposeUnmanagedGraphics()
              {
                  BuyLadderBrushDx?.Dispose(); BuyLadderBrushDx = null;
                  SellLadderBrushDx?.Dispose(); SellLadderBrushDx = null;
                  PositiveDeltaBrushDx?.Dispose(); PositiveDeltaBrushDx = null;
                  NegativeDeltaBrushDx?.Dispose(); NegativeDeltaBrushDx = null;
                  ChartBackgroundBrushDx?.Dispose(); ChartBackgroundBrushDx = null;
              }
      This is my portione of code in thexyz.cs file the method name protected void DisposeUnmanagedGraphics()
      erroris expressione expected and class member declaratione expected please could reply me how to resolve this one .
      INside the regione properties the generated complete code will error sample code is like that
      Code:
      [Display(Name = "Mode", GroupName = "01. Profile", Order = 0)]
              public ProfileMode ProfileMode
              { get; set; } = ProfileMode.Volume;
       
              [Display(Name = "Show Delta", GroupName = "01. Profile", Order = 1)]
              public bool ShowDelta
              { get; set; } = false;
      This code expecteing class member declaratione error
      Identify the exact line and statement that is in error.

      Comment


        #4
        Hi,
        The error from thr bottom portione of the ninjascript editor.expressione expected in The code protected void DisposeUnmanagedGraphics()
        {
        BuyLadderBrushDx?.Dispose(); BuyLadderBrushDx = null;
        SellLadderBrushDx?.Dispose(); SellLadderBrushDx = null;
        PositiveDeltaBrushDx?.Dispose(); PositiveDeltaBrushDx = null;
        NegativeDeltaBrushDx?.Dispose(); NegativeDeltaBrushDx = null;
        ChartBackgroundBrushDx?.Dispose(); ChartBackgroundBrushDx = null;

        Comment


          #5
          Please follow the instructions in the attached picture. Please then attach the document this gives you. This will make it easier to give you the best help we can.


          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
          574 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          333 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          553 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X