• 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, 07: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 refine, Today, 05:02 PM
        0 responses
        1 view
        0 likes
        Last Post refine
        by refine
         
        Started by White Fork, Today, 01:57 PM
        2 responses
        6 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by martyn73, Today, 02:45 PM
        2 responses
        9 views
        0 likes
        Last Post martyn73  
        Started by ct, Today, 12:48 PM
        4 responses
        22 views
        0 likes
        Last Post eDanny
        by eDanny
         
        Started by BrandonT1292, 07-30-2018, 07:32 PM
        11 responses
        400 views
        0 likes
        Last Post EllisEdi  
        Working...
        X