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

Smoothed Moving Average

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

    Smoothed Moving Average

    Hello,

    I use a smoothed moving average in my trading system. I have not been able to find one to input on the public domain indicators. Am I missing it, or is it named something else?

    After running few searches on the support forum and reading past inquiries on the subject , I believe that it was possible to develop, but a programmer would be needed.

    The posts were old, does anyone know of any links where I could find some ninja snippets on the subject, or someplace to start on developing a working Smooth moving average?

    Thank you in advance, and all help is much appreciated

    #2
    Hello,

    Thanks for the forum post.

    When you say smoothed moving average. Smoothed How?

    There are many different smoothing methods.

    EMA, HMA, TEMA for example.

    Comment


      #3
      I am a little bit foggy on how to explain the smoothed concept exactly so I will copy the discription of what I am looking for below. My big question is how exactly to program the following concept into ninjascrip in order to have a functional smoothed moving average:

      Smooth:
      A Smoothed Moving Average is similar to a simple moving average. However, in a smoothed moving average, rather than subtracting the oldest value the previous smoothed average value is subtracted.
      For the following example the PERIOD equals 3.
      The first value for a Smoothed Moving Average is determined by the formula SMOOTH. It is plotted on the chart at the third bar from the left side of the screen.
      SMOOTH =(PRICE 1 + PRICE 2 + PRICE 3)/PERIOD
      The next value would be plotted at the fourth bar from the left side of the screen.
      SMOOTH2 = (PREVIOUS SUM - PREVIOUS AVG + PRICE 4)/PERIOD
      For the second calculation of SMOOTH, PREVIOUS SUM is the sum of PRICE 1 + PRICE 2 + PRICE 3; and PREVIOUS AVG is the initial value of SMOOTH.
      The next value would be plotted at the fifth bar from the left side of the screen. SMOOTH = (PREVIOUS SUM - PREVIOUS AVG + PRICE 5)/PERIOD. Subsequent values would be determined by subtracting the PREVIOUS AVG from the PREVIOUS SUM, adding the next more recent PRICE, then dividing by the PERIOD.

      Thank you in advance, I hope this copy describes best what I am looking for.

      Comment


        #4
        Hello,

        I have not heard of an SMA like this before. Therefor this would need to be custom coded.

        You can contact one of our NinjaScript consultants to assist you with coding this or you can use our NinjaScript guide and forums to code this indicator yourself if you are a programmer.


        NinjaScript Consultants:


        NinjaScript Help Guide:



        Let me know if I can be of further assistance.

        Comment


          #5
          Ok, thank you for your time. I am not too well versed in the mechanics of the Smooth Moving Average, so I will do some research and see if it is possible without hiring a programmer.

          Comment


            #6
            Hi,
            I am not shure - but it looks like the SMMA.
            The Rules are very easy to code - check out the Ninjatrader Tutorials (i.e. for the SMA). After that you are able to write the code for that simple smoothed MA

            best
            TS

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by RookieTrader, Today, 09:37 AM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by alifarahani, Today, 09:40 AM
            0 responses
            5 views
            0 likes
            Last Post alifarahani  
            Started by Gerik, Today, 09:40 AM
            0 responses
            4 views
            0 likes
            Last Post Gerik
            by Gerik
             
            Started by KennyK, 05-29-2017, 02:02 AM
            3 responses
            1,283 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by AttiM, 02-14-2024, 05:20 PM
            11 responses
            185 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X