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 BarzTrading, Today, 07:25 AM
          2 responses
          13 views
          1 like
          Last Post BarzTrading  
          Started by devatechnologies, 04-14-2024, 02:58 PM
          3 responses
          19 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by tkaboris, Today, 08:01 AM
          0 responses
          3 views
          0 likes
          Last Post tkaboris  
          Started by EB Worx, 04-04-2023, 02:34 AM
          7 responses
          162 views
          0 likes
          Last Post VFI26
          by VFI26
           
          Started by Mizzouman1, Today, 07:35 AM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X