The Best Moving Average for 5 Min Chart – Case Study with Video

In the recent article, we learned basic information about moving average indicators. However, many traders these days use day trading strategies. Very often, on our FXIGOR YouTube channel, I get questions about the best-moving average for this type of chart.

I do not use short periods for trading. As I age, I use more long-term trading strategies or swing trades, and I keep my positions for at least a few days. However, the rule of thumb for every strategy is to make tests. So, if you conduct hundreds of trials and get statistically relevant results, you can choose the proper parameters.

Usually, quant traders use machine learning models to tune and find proper indicator parameters. However, in this article, I created a simple testing strategy that you can also do. Instead of Metatrader, we will use TradingView (read our review).

To learn how to backtest in Tradingview, visit our page.

I will present you my personal research (case study) and my personal view:

The Best Moving Average for 5 Min. Chart Case Study TradingView

The best moving averages for the 5-minute chart are 20 MA and 50 MA. Results are generated on major USD forex pairs (EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD, and NZDUSD) based on 72 tests on the TradingView platform.

We created one more experiment for a 15-minute chart, too.

The best Moving Averages for a 15-minute Chart are 8 MA and 13 MA. Using the same strategy, we implemented all tests on six major forex pairs and got similar results.

We used only a five-year time frame for each test.

Experiment methodology:

Step 1: Visit the TradingView page for strategy testing.

You can get a premium pro account here, but you need free for this experiment:


Step 2: Choose a wished chart and set the time frame to be 5 minutes.

tradingView chart GBPUSD on 5 minutes

Step 3: Choose MovingAvgLineCross from the list of scripts. Using this EA, you will buy when you have a bullish cross and sell after a bearish cross. In this case, you can evaluate which period crosses are the best.

pick moving average cross strategy

Step 4: Set periods and test strategy.

run moving average crossover strategy

You will get the profit factor and testing results in just a few seconds.


The Best Moving Average for 5 Min. Chart Case Study MT4

If you like MT4, you can test and choose the best-moving average for the 5-minute chart. In this case, you need to download our EA for moving average crossover:

Download Moving Average CrossOver EA


  • Download MT4 EA to test moving average crossover for different periods.
  • Copy .ea expert advisor into Experts Folder.
  • The EA inputs set periods in the fields “Fast moving average period” and “Slow moving average period.”
  • Run EA and test various variations.

fast and slow ma periods in MT4 EA

Case Study results

We made a lot of combinations of moving average periods. We tested significant currency pairs in the last ten years, from 2012 up to 2022. For each currency pair (EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD, and NZDUSD), the test is done using a per one-period combination, and the average profit factor is estimated.

Fast PeriodSlow PeriodAverage Profit Factor for major USD forex pairs

The profit factor represents the average profit factor estimated from 6 test results for six major forex pairs.

Period combinations are made based on finance literature and trading experience.


High-volume traders usually use periods such as 10, 20, 50, 100, and 200 in their trading routine. Because of that, the case study result is not unusual. However, periods 8 and 23 showed significant statistical impact in our results, so if you are a day trader and trade on 5-minute charts, you can use our results to improve your trading.



Igor has been a trader since 2007. Currently, Igor works for several prop trading companies. He is an expert in financial niche, long-term trading, and weekly technical levels. The primary field of Igor's research is the application of machine learning in algorithmic trading. Education: Computer Engineering and Ph.D. in machine learning. Igor regularly publishes trading-related videos on the Fxigor Youtube channel. To contact Igor write on:

Trade gold and silver. Visit the broker's page and start trading high liquidity spot metals - the most traded instruments in the world.

Trade Gold & Silver


Recent Posts