Discussions
»
Product and Service Development
»
MetaStock
»
Metastock - you can move a moving average over the 'last bar?
Rank: Member
Groups ready for retrieval: Registered, Registered Users, Subscribers Joined: 10/4/2010(UTC) Posts: 12
|
Hello,
When i move forward a Moving Average "es. 3 periods" does not go beyond the 'last bar of the chart (the most recent data), in practice eat the periods of forward movement.
If I look around the historic "well" the Moving Average is moved forward to X times, but everything end in 'last bar, I would see periods of MM over the' last bar of the graph.
With this formula I can move the back the close of x period, that would be the same thing:
TRASLAZIONE:=Input("Enter the number of periods",0,100,20);
DATA:=Ref(C,TRASLAZIONE);
GRAFICO:=ValueWhen(1,Ref(C,TRASLAZIONE),DATA);
GRAFICO;
but I do not need much because I can not see the bar graph but only with the close.
I hope to have explained the problem.
Can someone help me?
Thanks
|
|
|
|
Rank: Member
Groups ready for retrieval: Registered, Registered Users, Subscribers Joined: 10/4/2010(UTC) Posts: 12
|
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
As has been explained many times on the forum...
You cannot plot data beyond the last bar of the chart (there are a couple of unwieldy workarounds, but take it as read that it cannot be done easily), and
On the last bar of the chart, what is the value of the 20 bar moving average in 20 bars time? You don't know, so MS will plot N/A. If you use a 20 bar lookahead, then the plot will stop 20 bars before the right hand edge of the chart because it doesn't have a crystal ball to be able to see further.
wabbit [:D]
P.S. There are only a few members who get paid to answer posts (they work for Equis), the rest of us just help out because we like to help, so you have to be patient in getting your posts answered. Read the forum rules.
|
|
|
|
Rank: Member
Groups ready for retrieval: Registered, Registered Users, Subscribers Joined: 10/4/2010(UTC) Posts: 12
|
Hello wabbit, thanks for your intervention. I absolutely do not want to go beyond the rules of the forum, I just wanted to attract the 'attention of someone for the answer. The next time I'll be more patient. I want to use the technique and the 3 * 3 dmac, a moving average of 3 times moved forward 3 times (over the 'last bar), is a technique used by Joe Ross to filter the highs,,, for this it is important to see the 3 periods over the last bar
If I have the sphere of crystal I don't need Mestatock. From the formula that I have built it is not possible to build a bar chart and replace of the closing?
DATA:=Ref(C,TRASLAZIONE);
GRAFICO:=ValueWhen(1,Ref(C,TRASLAZIONE),DATA);
if I can replace the close with a bar chart the game is done .........[:D]
is it possible?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
|
|
|
|
Rank: Member
Groups ready for retrieval: Registered, Registered Users, Subscribers Joined: 10/4/2010(UTC) Posts: 12
|
Thanks for your help wabbit.
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Discussions
»
Product and Service Development
»
MetaStock
»
Metastock - you can move a moving average over the 'last bar?
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.