• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

sharing classes

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

    sharing classes

    can I write a class and share/use it in several indicators? if so are there any samples?

    #2
    Futurenets,

    Yes, you can create a class to use that the other indicators can use.

    As long as the class is using the same namespace this will work.
    Code:
    // This namespace holds all indicators and is required. Do not change it.
    namespace NinjaTrader.Indicator
    {
          public class MyClass
          {
    
          }
    }
    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      ok thanks.

      so in any indicator I can

      mC = new MyClass ?

      excellent.

      creating from scratch preferably with minimum code - do you have a sample or do I just create an indicator?
      Last edited by futurenets; 03-13-2015, 06:12 AM.

      Comment


        #4
        Hello Futurenets,

        No sample, it would be like creating an indicator from scratch
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by zacharydw00, Today, 10:19 PM
        0 responses
        2 views
        0 likes
        Last Post zacharydw00  
        Started by chafan11, Today, 09:28 PM
        0 responses
        5 views
        0 likes
        Last Post chafan11  
        Started by GreenspanAlec, Today, 05:32 PM
        0 responses
        7 views
        0 likes
        Last Post GreenspanAlec  
        Started by mrwarkhan, Today, 03:45 PM
        0 responses
        14 views
        0 likes
        Last Post mrwarkhan  
        Started by momchi, Yesterday, 10:09 PM
        3 responses
        12 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Working...
        X