Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to create a divergence alert between the price and rsi indicator

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

    How to create a divergence alert between the price and rsi indicator

    Hello;

    i want the platform to alert me when the price is rising and the rsi is lowering or when the price is lowering and the rsi is rising, is there a indicator for this? How can i do it? Do i have to enter a code?

    Thank you very much

    regards

    #2
    Hello danitrader,

    This would need to be accomplished with a custom coded indicator.

    In the indicator, the Rising() and Falling() functions can be used and when true, you can set a plot or trigger the alert directly using Alert().
    Rising() - http://ninjatrader.com/support/helpG...nt7/rising.htm
    Falling() - http://ninjatrader.com/support/helpG...t7/falling.htm
    Alert() - http://ninjatrader.com/support/helpGuides/nt7/alert.htm

    If you set the plot to 1 for rising, 0 for flat, and -1 for falling, this could be used as a trigger for the Market Analyzer if you wanted to add the indicator as a column.

    I have an example that uses a crossing of two indicators which I am linking below, however, the conditions could be changed to rising and falling.



    A quick note, with NinjaTrader 8, this could be accomplished using the Alerts in the Market Analyzer without any code necessary and can also be triggered from the Alerts window directly from a chart without any code.
    You can check that an indicator on the current bar is greater than the previous bar (or vice versa), and trigger an alert.
    Last edited by NinjaTrader_ChelseaB; 02-05-2017, 08:42 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I am also looking to make this script. I am almost there. Have you had any luck getting it done?

      Comment


        #4
        Originally posted by danitrader View Post
        Hello;

        i want the platform to alert me when the price is rising and the rsi is lowering or when the price is lowering and the rsi is rising, is there a indicator for this? How can i do it? Do i have to enter a code?

        Thank you very much

        regards
        You can use my universal DivergenceInputSeries indicator to get divergence signals for RSI or any other oscillator(Stoc, MACD, CCI, etc.). Download here and follow instructions:



        Cheers!

        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
        331 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
        549 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