• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.
    http://ninjatrader.com/support/forum...286#post436286


    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:

        https://ninjatrader.com/support/foru...d=19582&sort=d

        Cheers!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Arkadiy_B, Today, 06:43 AM
        0 responses
        2 views
        0 likes
        Last Post Arkadiy_B  
        Started by leontancfa, Today, 06:09 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Started by soulfx, 12-01-2017, 08:44 AM
        3 responses
        1,019 views
        0 likes
        Last Post NinjaTrader_EricB  
        Started by Parmenides48, 04-09-2019, 03:32 AM
        10 responses
        50 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Started by NinjaCustomer, Today, 01:48 AM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_EricB  
        Working...
        X