Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

MACD Divergence Strategy Builder

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

    MACD Divergence Strategy Builder

    Hi,

    I am trying to create a strategy that plots an arrow when a divergence occurs between the MACD and price. For instance, if price continues to make higher highs, but the faster MACD value does not make a higher high. Likewise if price makes lower lows but the fast MACD does not make a lower low. I use the following MACD settings: Fast = 5; Slow = 20; Smoothing = 30. Is there a way to create this in the strategy builder? I have attached a picture to depict the kind of divergence that I'm talking about. The divergence is in the highlighted boxes. Price made a lower low, but The fast MACD was climbing higher.

    Thanks
    Attached Files
    Last edited by Tradwell385; 07-28-2020, 05:45 PM.

    #2
    Hello Tradwell385,

    Thanks for your post.

    I do not think it would be possible within the confines of the strategy builder due to the limitations of the strategy builder itself. It would be possible with a Ninjascript created strategy where there are no limitations. The swing indicator could be used on both price and indicator to provide the Swing High/low points. You may want to apply the swing indicator to your chart for both price and the MACD (as input to Swing) and observe if that would provide what you need.

    Alternatively, if you can find a divergence based indicator, you may be able to use that (in the strategy builder or a Ninjascript strategy).

    Alternatively, if you would like a strategy created for you, we can provide a link to 3rd party programmers.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ScottWalsh, 04-16-2024, 04:29 PM
    7 responses
    34 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by cls71, Today, 04:45 AM
    0 responses
    5 views
    0 likes
    Last Post cls71
    by cls71
     
    Started by mjairg, 07-20-2023, 11:57 PM
    3 responses
    214 views
    1 like
    Last Post PaulMohn  
    Started by TheWhiteDragon, 01-21-2019, 12:44 PM
    4 responses
    547 views
    0 likes
    Last Post PaulMohn  
    Started by GLFX005, Today, 03:23 AM
    0 responses
    3 views
    0 likes
    Last Post GLFX005
    by GLFX005
     
    Working...
    X