Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

sma crossover strategy

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

    sma crossover strategy

    I have created a simple moving average crossover strategy in the strategy wizard, but now I want to add a condition to it based on a 3rd slower sma? For example if the crossover is below the 3rd slower sma, I want to wait to enter until price closes beyond this 3rd ma and add a marker there. Thanks.

    #2
    Wilson,

    When a crossover occurs, this would mean that both series are equal at one point. I would suggest just adding a condition for "if one of the sma's are below your third sma".
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      I did this in the wizard as I don't know programming. At what screen/point can I do this in the wizard? Thanks Adam.
      Attached Files

      Comment


        #4
        You can do it from the conditions and actions step.

        Assuming you're using SMAs....

        # Set 1
        # Add
        # Indicators
        # SMA
        # Set the period or use the variable you defined earlier for the Fast MA
        # in the middle column set CrossesAbove
        # in the right column set SMA
        # Set the period or use the variable you defined earlier for the Slow MA
        # OK

        Now you have your fast MA crossing over the Slow MA. To make sure that the crossover is above the Confirmation MA:

        # Add
        # Indicators
        # SMA
        # Set the period for Fast MA
        # in the middle column set Greater Than
        # in the right column set SMA
        # Set the period or use the variable you defined earlier for the confirmation MA
        # OK

        And do the same thing for the Slow MA to make sure that it is also above the Confirmation MA.
        Last edited by AXELGREASER; 06-30-2012, 08:41 PM.

        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
        368 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
        571 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