Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how can I add extra conditions?

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

    how can I add extra conditions?

    I am designing a strategy that needs more than the 10 conditions available for us to use. How can I add extra conditions without having to use pure code? I am not a programmer.
    Thanks

    JCF

    #2
    - there is no limit on the number of conditions
    - however, there is a limit 10 condition/action sets in the wizard which can not be overcome. You could need to custom code in NinjaScript

    Comment


      #3
      Originally posted by NinjaTrader_Dierk View Post
      - there is no limit on the number of conditions
      - however, there is a limit 10 condition/action sets in the wizard which can not be overcome. You could need to custom code in NinjaScript
      I was just wondering the same thing myself...

      Can this limit be increased in the future?

      If this limitation in the wizard "can not be overcome" as you say, is there any type of work around?

      For example, could two instances of the wizard be used and code copied from one to the other in the NinjaScript editor?

      Comment


        #4
        Thanks for your suggestion. We'll add it to the list of future considerations.

        You can overcome this limitation by custom coding in NinjaScript.

        Comment


          #5
          Great! The strategy builder is really powerful, especially for those without prior programming experience. Ten conditions may seem like a generous amount, but never underestimate the creative power of the human brain when its trying to avoid learning C#!

          I think I just break down and get Teach Yourself Visual C# 2005 in 24 Hours, or a similar book and be done with it. A basic understanding of C# should be suffiecient for coding NinjaScript and tweaking wizard generated code.

          Comment


            #6
            One thing I just figured out which can help overcome this limitation at the moment, is to use multiple strategies concurrently.

            I'm testing using one strategy for longs and a separate one for shorts. This can lead to some interesting "hedging" type situations, where one is going long and the other short at the same time.

            One additional parameter than could really help make running multiple strategies more effective and powerful, would be a "global market position" parameter, which is aware of open positions of another strategy on the same instrument, or something similar.

            Comment


              #7
              Thanks for the suggestion. We will put it on the list for consideration.
              Josh P.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              647 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              369 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              108 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              572 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              573 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X