Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Divergence (ATR 10 vs. Price)

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

    Divergence (ATR 10 vs. Price)

    I'm currently studying the syntax for ninja script. I have developed a few custom strategies but I am having difficulties developing a divergence indicator and divergence strategy.
    Is there a generic divergence indicator available on Ninja Trader 6.5 that I use as a source code reference.

    Here's a summary of what Im trying to do:
    1. When the ATR 10 has a higher low and price has a lower low then enter long(or draw an arrow up)
    2. When the ATR 10 has a lower high and price has a higher high then enter short
    (or draw an arrow down)

    Let me know if anyone have any suggestions. Thanks guys.

    #2
    Hello,

    Thanks for you for your forum post and welcome to the NinjaTrader support forum.

    I cannot create code for you as this is what our certified NinjaScript consultants are for, however I can point you in right direction.


    You would will need to do is be able to identify this higher highs and lowe lows and then compare them to the price action. What your looking to do you can use the indicator that is built into NinjaTrader called the Swing indicator which finds swing high and swing lows. You can use this as a bases for coding this indicator.

    Also, you can contact one of our NinjaScript consultants to assist you with coding this or you can use our NinjaScript guide and forums to code this indicator yourself if you are a programmer.

    NinjaScript Consultants:

    NinjaScript Help Guide:

    NinjaTrader Support Forum:

    Strategy Wizard:


    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    571 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 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
    548 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    549 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X