• 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

Distance from Moving Average

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

    Distance from Moving Average

    Is there an existing indicator that will monitor the distance between the current price and a Moving Average?

    I have completed several search variations but without success.

    Any suggestions on this?

    Thanks!

    JJ

    #2
    Hi JJ,

    I'm not aware of this but you can create easily enough. The following line sets a plot using the absolute value of the difference between close and a SMA.

    Value.Set(Math.Abs(Close[0] - SMA(Close, 14)[0]));
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by Prov1322 View Post
      Is there an existing indicator that will monitor the distance between the current price and a Moving Average?

      I have completed several search variations but without success.

      Any suggestions on this?

      Thanks!

      JJ
      And if you want to see it as an oscillator, just yank the "Math.Abs" from Ryan's post thusly:

      Code:
      Value.Set(Close[0] - SMA(Close, 14)[0]);

      Comment


        #4
        Thanks to both RyanM and koganam for the code lines...now just have to figure out how to cut/paste/create from a built-in, system indicator...(and I will...!)

        JJ

        Comment


          #5
          Hello guys!

          Maybe anybody knows if there already is an Indicator that will monitor the distance between price and EMA maybe displayed as a histogram?

          Thank you

          Comment


            #6
            Hello eisi83,

            Thanks for your post.

            I am not aware of an indicator that provides this but you are welcome to review any of the free NT user apps here: https://ninjatraderecosystem.com/user-app-share/ Please note: The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

            If you would like an indicator created for you, we can provide references to 3rd party providers of that service.

            Paul H.NinjaTrader Customer Service

            Comment


              #7
              Thank you Paul,

              I got what i wanted with a simple MACD showing me exactly what i was looking for.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Fiocco, Today, 05:59 AM
              0 responses
              15 views
              0 likes
              Last Post Fiocco
              by Fiocco
               
              Started by catinabag, Today, 06:09 AM
              0 responses
              6 views
              0 likes
              Last Post catinabag  
              Started by junposlee, Today, 02:59 PM
              0 responses
              1 view
              0 likes
              Last Post junposlee  
              Started by patpat, Yesterday, 11:02 AM
              2 responses
              8 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by jameslee001, Yesterday, 08:09 AM
              1 response
              11 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Working...
              X