Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Strategy Public or Private?

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

    Custom Strategy Public or Private?

    New to NinjaTrader. When you create a custom strategy using the Strategy Builder is it automatically made available to the public or is it kept private until you make it public (if this option exists)? Thank you

    #2
    I think you may be confused.

    In the code, when an Indicator or Strategy is defined as public,
    that is a C# access modifier, and has absolutely nothing to do with
    you making the thing available to other people.

    Every Indicator and Strategy uses the public access modifier.

    If you want to keep the thing private for yourself, then don't
    give it to anybody, but the access modifier is always public.

    When you're ready to distribute your Indicator/Strategy to friends
    and/or family, or for sale, now you're talking about distribution
    issues, which is a whole new ballgame.

    Again, the C# access modifier public has nothing to do with
    distribution of your NinjaScript object.

    Access modifiers and distribution are completely separate
    concepts and do not overlap.

    Comment


      #3
      Thank you bltdavid!

      Comment


        #4
        Hello obiwan_cashobi,

        Thanks for your post.

        NinjaScript strategies will be held locally on your machine and are not accessible to the public unless you share your strategy with others, such as posting the strategy code on the NinjaTrader Forums.

        bltdavid is correct with the information they shared regarding access modifiers.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        47 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        33 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        50 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Working...
        X