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 sjsj2732, Yesterday, 04:31 AM
    0 responses
    32 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    286 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    283 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    133 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    91 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X