• 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

Trying to write a 'divergence' indicator

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

    Trying to write a 'divergence' indicator

    Need to write an indicator that compares the slope of two moving averages.

    If the indicator is positive then the faster moving average is leading the slower one.

    I need to determine if a moving average or is headed up or down.
    But Best way to do this ?

    Create another average of that indicator (2 period) and that has a positive or negative value,

    or just computer the prior value to the current value?

    Can I create an indicator of an indicator?

    #2
    DancesWithBears, you surely could create indicators running on indicators, as most of them accept a DataSeries object as input series.

    But for your need, Rising() and Falling() should do it -

    http://www.ninjatrader-support.com/H...V6/Rising.html

    http://www.ninjatrader-support.com/H...6/Falling.html
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I created an indicator and a strategy for the same....

      Check here....

      I hope this works for you.... good luck!
      Last edited by isitpossible; 11-22-2015, 08:14 PM.

      Comment


        #4
        Hello, could you create a divergence indicator for me showing divergences between price and the double stochastics? Thanks,Dennis

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by sledge, Today, 06:11 PM
        1 response
        8 views
        0 likes
        Last Post sledge
        by sledge
         
        Started by Bionian, Today, 02:46 PM
        2 responses
        9 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by rwilliam, Today, 01:54 PM
        1 response
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by franco12364, Today, 11:27 AM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by YevhenShynkarenko, Today, 11:48 AM
        4 responses
        27 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Working...
        X