Can someone tell me how to put a 20 day moving average onto a volume chart? There must be a formula for it. thanks.
Announcement
Collapse
No announcement yet.
volume chart
Collapse
X
-
Re: volume chart
shufl
If by 20 day you mean 20 periods then you do not need a formula to do that. Just right click the chart select Basic Studies then Moving Average and set the parameters as required.
If instead you mean a 20 period moving average based on the daily data then you already have installed in your computer a formula that can do that ie customMA.efs which is in the EFS2 Custom fiolder of Formulas. Right clicik the chart select Formulas-> EFS2 Custom then customMA.efs and when you ap[ply it to the chart set the Interval parameter to D or d and the formula will calculate the average based on the daily interval regardless of the interval being charted
Alex
Originally posted by shufl
Can someone tell me how to put a 20 day moving average onto a volume chart? There must be a formula for it. thanks.
-
shufl
I am assuming that you are referring to the plot of the formula.
Right click the chart, select Edit Studies, select the MA study in the Studies list then in the Override section put a check mark in the Color and select the desired color using the selector
Alex
Originally posted by shufl
thanks. i think it's working. Would you know how to change the color of the new line?
Comment
-
shufl
...it is only giving a value for the DMA and not drawing a line
The value doesn't change as i roll the mouse over the chart.
Furthermore if you are offsetting the average forward the value would not change on the current bar(s) as the average would be based on completed bars.
That said keep in mind that because of how that formula is written the offset is relative only to chart interval. If you want to offset the average based on the external interval then you will need to modify the script. If you run a search for offset AND average* you should find some examples on how to do this as the topic has been covered before
Alex
Originally posted by shufl
So far so good. However, it is only giving a value for the DMA and not drawing a line. The value doesn't change as i roll the mouse over the chart.
Comment
Comment