Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy wizard questions

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

    Strategy wizard questions

    I am using the strategy wizard to develop a program. I can't seem to get two conditions to work. I want the conditions to be when the MACD's direction is "pointing up".

    When using the condition builder i used macd then selected the double equal sign, then went to misc. and selected rising.

    When I pressed ok it gave me an error about the "expressions not matching". I would to make aother condition based on the directions of the indicators at a particular moment. Please help.

    #2
    Hello rh017548,

    Welcome to our forums.

    Please see the reference sample below for using Rising and Falling conditions in the strategy wizard.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the reply ryan.
      So I read the file you provided, and this is the code I came up with:

      if (Rising(MACD(12, 26, 9) .Avg[1]) == true
      && Rising(CCI(14)[1]) == true)

      is this correct for "" The MACD and the CCI have to be rising "pointing up"?

      thanks

      Comment


        #4
        Yes, a rising condition will compare its value to it previous value.

        In your example though, you are using an index, which would be looking for a double input. You don't need the [1] in either statement.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        576 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X