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

## Recommended Posts

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?

Thanks

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.

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?

Thanks

@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.

#### Archived

This topic is now archived and is closed to further replies.

• ### Posts

• The convergence of artificial intelligence (AI) and blockchain is ushering in a new era of innovation. AI Network is at the forefront of this revolution, creating a decentralized platform that empowers anyone to develop, own, and trade AI applications. By leveraging blockchain technology, AI Network is essentially democratizing the creation and sharing of AI, much like the open-source movement did for software.   The platform's core, the \$AIN token, fuels a decentralized GPU network capable of handling complex AI models. This infrastructure provides accessible, powerful AI tools to a global audience, fostering a thriving ecosystem of AI development and innovation.   To accelerate growth and expand its reach, AI Network is poised to list its \$AIN token on the prominent cryptocurrency exchange, Bitget. This strategic move is expected to significantly increase the token's liquidity and visibility, attracting a wider investor base. As a result, AI Network is well on its way to achieving its ambitious goal of becoming the 'Internet for AI' in the Web3 era.
• Catizen's community is currently buzzing with excitement and anticipation over the listing price and date. This anticipation continues to increase due to \$Cati best price on Bitget pre-market and various exchange ranging between \$0.67 and 0.70. The community have applaud the project team for effective community and commitment in getting the token listed on top tier exchanges. No doubt they hope this will outperform Notcoin airdrop considering the user base and support from Durov. 43% airdrop allocation to the community with no vesting also contributes the community anticipation for the listing date.   I know a lot of exchanges will list Catizen considering the amount of campaign to reward the community. Imagine the recent 320,000 BBG prize pool for Catizen community on Bitget, though I have seen a lot of campaigns that have ended on various exchanges but this really caught my attention, that reward pool is huge and enticing and the fact that it is mainly for new users makes it more exciting.    While I have good faith that Catizen will surpass community expectations in terms of airdrop, I am eager to see the price trend and how the team starts achieving its roadmap.
• Hi   the rejection I get is "order rejected" I just tried.
×
×
• Create New...
us