Login Page - Create Account

Support Board


Date/Time: Mon, 16 Jun 2025 08:37:13 +0000



Moving Averages across different time frame charts

View Count: 935

[2023-08-14 17:03:15]
User185135 - Posts: 7
Hello - I have a 21 SMA and 9 EMA plotting on a 5-minute chart.

I am then using the Price/Study overlay to view them on a 1-minute chart.

Is there any way to smooth how it looks on the 1-minute chart, so it doesn't look stair stepped?

See attached images.
imageSC averages question.PNG / V - Attached On 2023-08-14 17:01:54 UTC - Size: 99.57 KB - 252 views
[2023-08-14 17:15:54]
cmet - Posts: 706
No. The average from 5 minutes will be the same over five 1 minute bars. Thus, it will plot as a flat line.
[2025-05-10 20:32:31]
ipauls_ - Posts: 7
Is it still the case that it's impossible to create a MA/EMA from a higher timeframe so that on each minute (if the current timeframe is 1 minute) the value is fixed and drawn as a smoother moving line? In Quantower, this can be done. Maybe there's a way to do it here as well? Maybe some custom study?
[2025-05-10 20:59:01]
Mercrastius - Posts: 47
Forget about the overlay study. Just add a 105 SMA and a 45 EMA study to the 1 minute chart. These will be equivalent to the 21 and 9 on the 5 minute, and since they're based on the shorter timeframe they'll be smooth.
[2025-05-10 22:10:14]
ipauls_ - Posts: 7
Yes, I understand that this option can be used, but it's not entirely accurate, and it doesn't work for tick/volume charts ((
[2025-05-10 23:06:54]
cmet - Posts: 706
You would need a custom version of the overlay study that uses interpolation or a study that reconstructs the 5 min (or higher time frame) bars using the lower time frame bars on the fly.
Date Time Of Last Edit: 2025-05-10 23:24:27
[2025-05-11 20:23:12]
ipauls_ - Posts: 7
Phew, maybe you have some tips on where I can learn more about these options and possibly find something useful?
[2025-05-11 22:29:04]
cmet - Posts: 706
Those aren't simple solutions (imo anyway).

Do you have the example from Quantower?

Not sure how an average from a 5 minute time frame can be a smooth line on a 1 minute chart. Will always be a single measurement across five 1 min bars. Anything smoothed is likely interpolated (and ultimately, inaccurate).
[2025-05-11 22:44:05]
ipauls_ - Posts: 7
Actually, it's not smoother — it's more accurate, to be precise. And the lower the timeframe, the more accurate it is. If the terminal is running, the moving average's position is recorded for each candle on the lower timeframe, so the line doesn’t look like a stair. But if you reload the chart, it ends up looking like it does in Sierra.

Here's the indicator code from Quantower:
attachmentMy_EMAs.cs - Attached On 2025-05-11 22:42:56 UTC - Size: 4.27 KB - 122 views
[2025-05-11 23:44:39]
cmet - Posts: 706
Here's something that updates a higher time frame average based on a lower time frame. This requires overlaying your EMA from the higher time frame onto the lower using Study/Price Overlay. The study then pulls the tick by tick data from the overlay without having to access another chart window.

I'm sure someone else has a more elegant solution but this seems to work. You can check for accuracy and tweak.

Image is of an ES 1 min with the 5 min overlay (green) and the live update plot (yellow) that will return to stair step when chart is reloaded.
Date Time Of Last Edit: 2025-05-12 01:09:34
attachmentMTF_EMA.cpp - Attached On 2025-05-12 01:05:35 UTC - Size: 1.49 KB - 90 views
imageMTF EMA.jpg / V - Attached On 2025-05-12 01:06:12 UTC - Size: 90.97 KB - 109 views
[2025-05-12 17:27:36]
John - SC Support - Posts: 40422
We really do not understand what you are wanting to see, apart from however Quantower does it. We need explicit information on what you want to see. Overlaying the data from a 5 minute chart to a 1 minute chart will give you what you see in Sierra Chart. The value for each of the bars that make up the 5 minutes will be the same.

If you can tell us how you want this to be, then we can point you to the proper solution.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-05-12 20:02:12]
ipauls_ - Posts: 7
Great!! it is working just the way i expected. thank you! thank you! thank you!
[2025-05-13 02:09:30]
ipauls_ - Posts: 7
The study above from CMET (MTF_EMA.cpp) is exactly what I was looking for. I'm not sure whether I should describe the difference between a Price/Study Overlay and this study
[2025-05-13 12:53:13]
John - SC Support - Posts: 40422
That is fine, if that works for what you need.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-05-19 14:03:08]
User609766 - Posts: 1
cmet

Hello,
I'm having trouble displaying your study MTF EMA on my chart.
If I understand correctly:
- I put a Moving Average on a 1-minute chart #1, for example (I'm using a Simple Moving Average, does it work with a simple one and not an exponential one?)
- I copy it to a 15-second chart #2 with the study/price overlay
- I put the MTF EMA study on the 15-second chart
- I enter the number of the 1-minute chart #1, which is the HTF
- I enter the ID of the price/overlay study on the 15-second chart
- I enter the subgraph number of the price overlay study on the 15-second chart, which is here: 1

This doesn't work. Is there an error in my procedure?
Thanks in advance

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account