Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Condition builded

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

    Condition builded

    hello

    i am starting to look into creating strategies with ninja trader (never done this before) and having problems on where to start. i have read the online help regarding how it should be done, but that does not say much about how to learn to build conditions (to actually understand how they work).

    I would like to try and test a strategy that consists of simple test of a bottom. So in words it would be like: when current price bar is close (+/- some tics) to the low from the previous say 50 bars, current bar closes green and indicator (MACD or Stochastic) makes a hook to the upside (it was moving lower for couple of bars and now current bar of the indicator is higher than the previous bar of the indicator) go long. And i want to see the trades only in first half an hour of trading day.

    Can anyone help me with this stuff or point me out where can i learn about it some more?

    thanks

    #2
    bagzi, expressing custom conditions in the builder is a learning process that will take some time and playing around with different setups until you hit the one you would like to use, they normally also evolve and improve as time goes by and you work more with it on a daily basis.

    A good number of examples for the condition builder specifically is found here :



    For the lowest low of the last x bars, you could look into the MIN method found under Indicators.

    The last section of the link above would show how to do time comparisons, those could be included in your trading conditions for the strategy, so it would effectively act as a time filter.

    Comment


      #3
      Ok, i got the time series working, that is neat! Now im strugling to get the MIN to work. Can u tell me waht does the == and != stand for?

      Comment


        #4
        sure, this would mean is equal to (==) and is not equal to (!=) - more info on those basic concepts is located here - http://www.ninjatrader.com/support/h...sic_syntax.htm

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        672 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        379 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        577 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        582 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X