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

protection level error

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

    protection level error

    I am referrencing indicator "A" in indicator "B" . In indicator "A" I created a dataseries called mysignal which simply places a value of 1 when true. In indicator "B" I created another dataseries "Indicator1_data" which references "A" mysignal.

    Inside the protected override void OnBarUPdate() I have the following:

    Indicator1_data.Set(VPA(20).mysignal[0]);

    I have done this many times without any problems.

    However, in this particular case I am getting the following error:

    "NinjaTrader Indicator VPA.mysignal is inaccessible due to its protection level."

    What is my problem here?

    thanks,
    Last edited by velocity; 08-13-2009, 05:43 AM.

    #2
    velocity, is the to be accessed dataseries declared as public?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I don't understand what you are asking.

      Comment


        #4
        velocity, I'm referring to the properties section of your dataseries in the 'to be accessed' indicator as per this sample - http://www.ninjatrader-support2.com/...ead.php?t=4991

        If you're using Plots to display the mySignal dataseries it should be automatically exposed and accessible.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Got it! thanks for the help.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by samish18, Yesterday, 08:57 AM
          8 responses
          25 views
          0 likes
          Last Post samish18  
          Started by DJ888, 04-16-2024, 06:09 PM
          3 responses
          10 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by RookieTrader, Today, 07:41 AM
          0 responses
          3 views
          0 likes
          Last Post RookieTrader  
          Started by maybeimnotrader, Yesterday, 05:46 PM
          1 response
          18 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Perr0Grande, Yesterday, 08:16 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X