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

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 maybeimnotrader, Today, 05:46 PM
        0 responses
        6 views
        0 likes
        Last Post maybeimnotrader  
        Started by quantismo, Today, 05:13 PM
        0 responses
        6 views
        0 likes
        Last Post quantismo  
        Started by AttiM, 02-14-2024, 05:20 PM
        8 responses
        166 views
        0 likes
        Last Post jeronymite  
        Started by cre8able, Today, 04:22 PM
        0 responses
        8 views
        0 likes
        Last Post cre8able  
        Started by RichStudent, Today, 04:21 PM
        0 responses
        5 views
        0 likes
        Last Post RichStudent  
        Working...
        X