Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MACD Cross

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

    MACD Cross

    I am trying to find a way to code or even use the Strategy Wizard to code if possible just a simple Fast line Crossing above and below the Slow line on the MACD. ALso is there a way to program in if the slow crosses above the slow line at a 45 degree angle buy? The standard default setting are fine for this.
    Thank You

    #2
    Hello,

    Thanks for the forum post.

    Yes this is possible in the strategy wizard.

    I would recommend watching the following youtube video and replacing the input conditions for the MACD plots that you want to check against.

    Let me know if you have any questions after watching the below video.

    Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.


    -Brett

    Comment


      #3
      I understand how to set a Fast and Slow Moving Average Cross which only has 2 parameters. When using the MACD the Fast (being 12) and the Slow (being 26) i see where they can be input but what i dont understand is how would you use the 3rd portion of the MACD being the smooth period?
      Ryan

      Comment


        #4
        Hello Ryan,
        MACD is the difference between the 2 EMAs. The Average is essentially an EMA of the MACD. The Smooth is the EMA period value.

        Please refer to the MACD indicator (in Control Center menu bar goto Tools>Edit NinjaScript>Indicaors…, in the Indicator dialog select MACD and click on Ok button) that comes with NinjaTrader to get an idea on how exactly MACD is calculated.

        To create a Macd crossover strategy please see the section “How to compare plot value of multi-Plot indicators” from here http://www.ninjatrader.com/support/h...on_builder.htm

        Please let me know if I can assist you any further.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Solution

          Try:

          CrossAbove(MACD(12, 26, 9).Diff, 0, 1)

          (or CrossBelow for shorts)

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by wzgy0920, 04-20-2024, 06:09 PM
          2 responses
          27 views
          0 likes
          Last Post wzgy0920  
          Started by wzgy0920, 02-22-2024, 01:11 AM
          5 responses
          32 views
          0 likes
          Last Post wzgy0920  
          Started by wzgy0920, 04-23-2024, 09:53 PM
          2 responses
          49 views
          0 likes
          Last Post wzgy0920  
          Started by Kensonprib, 04-28-2021, 10:11 AM
          5 responses
          193 views
          0 likes
          Last Post Hasadafa  
          Started by GussJ, 03-04-2020, 03:11 PM
          11 responses
          3,235 views
          0 likes
          Last Post xiinteractive  
          Working...
          X