Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

partial class in sub folder

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

    partial class in sub folder

    I started porting my NT7 code to NT8. After getting scripts completed I realized I should be able to keep them all together in new folder.

    I
    >created a new folder under Indicators and renamed it.
    >dragged 6 Indicators to the new folder
    >After dragging a partial class indicator I get this error "Inconsistent accessibility . . ."

    see attached .doc for more

    Ideas?
    Attached Files

    #2
    Hello tquinn,

    Thank you for writing in.

    In order to investigate further, can you please expand the Error column so we may see the error messages in full?

    To do this, place your mouse cursor over the divider between Error and Code and then click and drag to the right.

    With the entire messages exposed, please provide a new screenshot.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Full error attached
      Attached Files

      Comment


        #4
        Hello tquinn,

        Ensure the access modifier for partial class Indicator matches up with the classes attempting to inherit the Indicator partial class.

        More information about the CS0060 compile error can be found here: https://msdn.microsoft.com/en-us/library/5732hs83.aspx

        Please, let us know if we may be of further assistance.
        Zachary G.NinjaTrader Customer Service

        Comment


          #5
          Thanks,
          I added public to the partial class. But I now get a different set of errors. (see attached)

          I'm still foggy about the Inheritance!?
          Attached Files

          Comment


            #6
            Hello tquinn,

            You are getting those errors because your partial class does not contain definitions for those methods.

            Your partial class needs to inherit the Indicators.Indicator class.

            Please take a look at this page for more information about class inheritance in C#: http://www.csharp-station.com/Tutorial/CSharp/Lesson08
            Zachary G.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            670 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            379 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            111 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            575 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            582 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X