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 rocketman7, Today, 02:12 AM
    5 responses
    22 views
    0 likes
    Last Post rocketman7  
    Started by trilliantrader, 04-18-2024, 08:16 AM
    7 responses
    28 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by samish18, 04-17-2024, 08:57 AM
    17 responses
    66 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by briansaul, Today, 05:31 AM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by PaulMohn, Today, 03:49 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X