sandman
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!
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
NinjaTrader
Same EMA but from multiple time frames
Collapse
X
-
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.
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
-
Originally posted by sandman View PostHarry. 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
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 Allwest, Today, 10:25 PM
|
1 response
8 views
0 likes
|
Last Post
by gaz0001
Today, 10:36 PM
|
||
Started by Mindset, Today, 10:31 PM
|
0 responses
5 views
0 likes
|
Last Post
by Mindset
Today, 10:31 PM
|
||
Started by sevensa, 03-14-2024, 10:15 PM
|
3 responses
26 views
0 likes
|
Last Post
by sevensa
Today, 10:19 PM
|
||
Started by bertochi, 04-16-2020, 12:15 PM
|
30 responses
1,059 views
2 likes
|
Last Post Today, 09:36 PM | ||
Started by Lumbeezl, 01-11-2022, 06:50 PM
|
28 responses
760 views
1 like
|
Last Post Today, 09:23 PM |
Comment