Jump to content

How is intraday Moving Average calculated? How the moving average line changes when chart scale changes?

Guest CowboyJJ

Recommended Posts

Guest CowboyJJ

I am probably asking a very dumb question here but I just can't find the answer I am looking on Google ( and I really can't believe that).

Let's take 5 day moving average for example.

We all know its official definition is the average of the closing prices of the last 5 five days. But in reality it isn't, right?

For example, when I look at the live chart of any stock, clearly the 5DMA line is updated as new prices trickle in. So, doesn't that mean the formula of live 5DMA should be (live  price + previous 4 days' closing prices)/5? Or is it ? Can anybody clarify exactly how the live 5DMA line is calculated?

Second question: The 5DMA line changes when the scale of the price chart changes. For instance, the 5DMA line on a 6M chart is clearly not the same 5DMA line on a 5D chart. And I don't think it's just a matter of granularity. Why? How is the line calculated differently when the chart scale changes? To me, it seems that when the scale of the price chart changes from 1D to 1M, the moving average line changes from 5-day average to 5-Month moving average. Or am I wrong?

Anybody who knows please help! Because I just can't make sense them!



Link to comment

Hi @CowboyJJ,  your last sentence about changing with time scale is correct. The 5 day moving average can only apply to a daily chart, if you change the time frame to the hourly chart it becomes the 5 hour moving average.

The 5 day moving average is the average from the previous 5 days and plotted on today's candle, day six. It won't move during the day as day six prices change and will only change on day 7 when day 6 becomes the last of the 5 days used for the calculation, the 5 hourly moving average will only change every hour. 

Link to comment
Guest CowboyJJ

Hi @Caseynotes, thanks for such a quick reply! Also thanks for confirming my suspicion with regard to my second question.

With regard to my first question I'm afraid I have to disagree with you due to two observations:

1. If what you said were correct, the 5DMA line (or any moving average lines) would have been piece-wise constant. Yet they are not. They are all smooth lines.

2. In fact, those 5DMA lines on both IG and Yahoo Finance (I use the latter more) are updated intraday with new prices. They are not static numbers and get updated with new intraday stock prices. The old text-book definition of 5DMA clearly doesn't seem to apply in this case.

Do you or anybody know why this is?


Edited by CowboyJJ
Link to comment

@CowboyJJ, on a daily chart there is only one bar per day, the plot of the average of the previous 5 days will not move though the daily bar itself may lengthen or shorten.

The data plot itself is a single point for each day that has been joined up to the previous plot.

The term DMA can only be applied to a daily chart, if you change time frames it is no longer a DMA, if you are looking at a 1 hour chart has become the the HMA which is completely different and will update every 1 hour.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • General Statistics

    • Total Topics
    • Total Posts
    • Total Members
    • Most Online
      10/06/21 10:53

    Newest Member
    Joined 02/10/23 20:22
  • Posts

    • If you have been into cryptocurrency over the time, you'd have noticed it has faced a lot of ups and downs, from several crackdowns to adoptions, ranging from China's ban, to El Salvador's adoption, including Tesla's adoption and others, and it looks as though in an ever developing world of technology, adoption seems to be the resolution for advancing companies and now we have another adoption, Honda Motor Co. Honda Motor Co., a well-known Japanese automaker, has made a surprising decision to accept digital assets as payment for its goods. By collaborating with the blockchain payment platform FCF Pay, Honda now makes it possible for clients to lease or buy their cars and power equipment using different cryptocurrencies, including XRP and the most popular doge token, Shiba Inu (SHIB). This partnership increases the possibilities accessible to customers who may now purchase Honda's cars, motorbikes, and power equipment using digital currencies like Bitcoin (BTC), Ether (ETH), Binance Coin (BNB), Polkadot (DOT), and other well-known cryptocurrencies in addition to XRP and Shiba Inu (SHIB) rather than conventional cash. The unique feature of Honda's offering is that it accepts a variety of more uncommon meme-inspired coins, such as Pepe Coin (PEPE), Floki Inu (FLOKI), Bone ShibaSwap (BONE), and Doge Killer (LEASH). Connecting the dots of various happenings in the crypto space and sudden adoption by various companies and even some economies, where do you see cryptocurrency in the coming years and what steps are you taking in preparation for it?
    • An NFT (Non-Fungible Token) marketing agency specializes in promoting and marketing NFT projects and collections. NFTs have gained significant popularity in recent years, especially in the art, entertainment, and gaming industries fracasdigital.com. To successfully market NFTs, you need a strategic approach that includes various digital marketing techniques and industry-specific knowledge.
    • 🤔 what a big question but I think the approval will help spur things up a bit in the market while waiting for the Bitcoin halving. 
  • Create New...