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 NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        62 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        134 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        75 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        50 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X