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

Same EMA but from multiple time frames

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

    #16
    Patrick. No more questions on this topic. Thanks for your help and patience.

    sandman

    Comment


      #17
      Originally posted by Harry View Post
      .... (2) Tweaking the indicator

      I understand that you try to build an EMA for a higher timeframe. For both EMA and SMA there is a simple solution: multiply the period of the EMA with the timeframe factor.

      -> a 13-period EMA on a 3 min chart is near-identical to a 39-period EMA on a 1-minute chart
      -> a 13-period EMA on a 10 min chart is near identical to a 130-period EMA on a 1 min chart

      Of course there are minor differences created by session templates and exponential smoothing, but they can be neglected.
      Harry. I had already tried something similar and had a 35-period EMA on a 1Min chart for the 13-period EMA of a 3Min DataSeries. 39 based on the formula you provided is better.

      I put that into my various charts and it seems it fulfills its intended purpose VERY nicely.

      Thank you for having taken the time to reply in such detail.

      sandman

      Comment


        #18
        Originally posted by sandman View Post
        Harry. I had already tried something similar and had a 35-period EMA on a 1Min chart for the 13-period EMA of a 3Min DataSeries. 39 based on the formula you provided is better.

        I put that into my various charts and it seems it fulfills its intended purpose VERY nicely.

        Thank you for having taken the time to reply in such detail.

        sandman
        Your thanks should go to Jack Hutson, see his contribution in Stocks & Commodities, Filter Price Data: Moving averages vs. Exponential Moving Averages, published in March 1984.

        Welles Wilder used an exponential moving average with a smoothing constant of 1/N, whereas the modification suggested by Jack Hutson lead to an exponential moving average with a smoothing constant of 2/(N+1), where N is the period or comparable length of a linear moving average.

        The simple approximation of a higher timeframe EMA is only possible because of the new definition of the smoothing constant.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        4 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Started by alifarahani, Today, 09:40 AM
        6 responses
        40 views
        0 likes
        Last Post alifarahani  
        Started by Waxavi, Today, 02:10 AM
        1 response
        18 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by Kaledus, Today, 01:29 PM
        5 responses
        15 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X