Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Wizard

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

    Strategy Wizard

    Is it possible to make a strategy using the wizard to does the following:

    1. Counts n range bars up or down.
    2. Closes above or below one or more moving averages.
    3. Emails a buy or sell signal.

    I could figure out step 2 and 3, but not step 1; not sure what I needed to do for the right side.

    Thanks in advance!

    #2
    Hello RiversideDude,

    Thanks for your post.

    I'm not sure about #1 but we do have an indicator called NBarsUp and one called NBarsDown.
    NbarsUp:
    Checks for n number of consecutive higher closes. Returns a value of 1 when the condition is true or 0 when false.
    Ref: http://ninjatrader.com/support/helpG...?n_bars_up.htm
    NBarsDown:
    Checks for n number of consecutive lower closes. Returns a value of 1 when the condition is true or 0 when false.
    Ref: http://ninjatrader.com/support/helpG..._bars_down.htm

    If either of these are what you are looking for then yes you can code this in the strategy wizard. On the right side of the strategy wizard you would select == 1 for a true condition.

    Comment


      #3
      Doesn't Ninja Trader have range or renko bars? How can I build a strategy that tells me if a range or renko bar closes above or below two or more moving averages?

      Thanks in advance!

      Comment


        #4
        Hello RiversideDude,

        Thanks for your post.

        Yes, Ninjatrader has both Range and Renko bars. These are accessible via the DataSeries window and can be found in the "type" row (left click in row to get drop down that lists all available bar types).

        You can create a strategy just like #2 in your first post which you advised you had figured out. It would be very much the same.

        Comment


          #5
          I think I figured it out.

          If I place the strategy on a Renko or range chart, does it count those bars and calculate when they close above or below a MA?

          Comment


            #6
            Hello RiversideDude,

            Thanks for your post.

            That is correct, when a strategy is applied to a chart, the strategies logic is applied based on the bars on the chart.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            633 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            364 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            567 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            568 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X