Hi !
How do I calculate a moving average over different time frames. eg. M10 - 6. if I use a diff time frame eg. M7 -?? What is the formula ?
There was a calculation in this Forum. I can't find it. Your Help will be appreciated.
You cant calculate for M7, Look at what is available and Look for calculation
- www.mql5.com
Hi !
How do I calculate a moving average over different time frames. eg. M10 - 6. if I use a diff time frame eg. M7 -?? What is the formula ?
There was a calculation in this Forum. I can't find it. Your Help will be appreciated.
formula always remains the same, it is the periodic data that you supply the formula that changes.
If you use one of the standard timeframes then there is no issue just select the timeframe you require.
If you want a custom timeframe like M7 then you have to first create the data set - search for creating custom charts/timeframes.
Are you asking about representing the same equivalent moving average on a different time-frame?
If yes, then a MA(6) on an M10 time-frame would be equivalent to a M(8.57) on a M7 time-frame.
Forum on trading, automated trading systems and testing trading strategies
Daily TF SMA 50 and SMA 200 Values for 15Min?
Fernando Carreiro, 2016.08.22 11:23
Simple Maths!
- D1 (day) = 24 hours = 1440 minutes.
- M15 = 15 minutes.
- ∴ D1/M15 = 1440/15 = 96
So to have the equivalent SMA 50 and SMA 200 on the M15 chart, you would have to use an SMA 4800 (50 x 96), and an SMA 19200 (200 x 96).
However, such BIG SMAs, will probably not be very practical and also be more CPU intensive. An alternative is to use a MTF (Multi-timeframe) Moving Average Indicator which will display the Daily SMA on the M15 chart instead. It will not be as smooth as this equivalent, but it will be the EXACT values of the daily one along the entire day.
Try both methods and see which one you prefer.
Forum on trading, automated trading systems and testing trading strategies
Fernando Carreiro, 2022.10.07 15:08
Your don't need to generate Offline Charts for such a simple indicator as a moving average and that applies to many indicators. Just adjust the period accordingly.
Example: A SMA(20) on H2 translates to a SMA(40) on H1. It will obviously be slightly different because H1 has more resolution than H2, but will be equivalent.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi !
How do I calculate a moving average over different time frames. eg. M10 - 6. if I use a diff time frame eg. M7 -?? What is the formula ?
There was a calculation in this Forum. I can't find it. Your Help will be appreciated.