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

Question on Subclass and inheritance and variables.

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

    Question on Subclass and inheritance and variables.

    My Main class has two subClasses each instantiated. One of the sub classes involves processing the other List data. The processing sub class at times needs to access List data from the List subclass. I am finding this problematic for the following reason. While the Main class can access either subclass and Set data from the list into the Processing class. This involves serious sequencing issues for when this data is updated. It also seems like a lot of useless duplication. For technical reasons I cannot make the Processing subclass part of the main. I looked at forcing inheritance but because they are instantiated it is my understanding that will not work either. I am kind of a rookie at dealing with this class issue. Could someone recommend a solution.

    Thanks
    Jerry

    #2
    Hello Jerry,

    Would it be possible to see the script that you have written to get a better view of this is working?
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by trimpy, Today, 04:38 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by dpolyakov, 03-29-2024, 11:30 AM
    4 responses
    150 views
    2 likes
    Last Post NinjaTrader_RyanS  
    Started by traderqz, Today, 12:06 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by kujista, Today, 06:23 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Pattontje, Yesterday, 02:10 PM
    2 responses
    34 views
    0 likes
    Last Post Pattontje  
    Working...
    X