Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 rocketman7, Today, 09:41 AM
          3 responses
          7 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by traderqz, Today, 09:44 AM
          2 responses
          4 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by stafe, 04-15-2024, 08:34 PM
          8 responses
          40 views
          0 likes
          Last Post stafe
          by stafe
           
          Started by rocketman7, Today, 02:12 AM
          7 responses
          31 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by guillembm, Yesterday, 11:25 AM
          3 responses
          16 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X