Moving Average Limitation

 

Hello all. Just wondering, pull up a 5 min chart (eg EURUSD) and go as far back as you can. Now plot a 5000 simple or exponential moving average. You will notice that it doesn't plot that moving average. Infact, if you notice, the highest you can go is 4000 simple moving average. Does anyone know if this is a bug or a design issue? Is it possible to modify the code of the indicator so that we can get 5000 SMA?


Thanks!


Raheem

 
May be, you don't have enough amount of historical bars to calculate such MA?
 
Andrey :
May be, you don't have enough amount of historical bars to calculate such MA?

Thanks for the reply Andrey. That is not the case because I have 1-min data all the way from Jan 15 2008 so it surely more than 5000 bars!

 
If you need MA with period more than 4000 on M1 (let say period is 6000), you can yo use MA with period 6000/5=1200 on time frame M5.
 
Thanks Rosh. That is what I am doing at the moment. But wondering if there is actually a way to precisely get the MA on a 1-min chart. Thanks!
 
See the custom indicator Code Base: Moving Averages.
 
Many thanks! But unfortunately, that does not work either. When I change the MA indicator to 5000, it goes back to 14 :(
 
Rosh :
See the custom indicator Code Base: Moving Averages.

So any updates on that please?

Reason: