Rank: Newbie
Groups: Registered, Registered Users Joined: 3/31/2006(UTC) Posts: 4
|
Looking for a way to delay the calculation, or omit the first x periods from calculation for a moving average, for use when the stock trades very wide on it's first day(s) of trade. For example, AMP.ASX
Any help, much appreciated.
longshanks
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Longshanks
Is something like this what you are looking for?
M:=Input("Moving average periods",1,99,10);
N:=Input("Substitution periods",1,99,5);
A:=LastValue(ValueWhen(1,Cum(1)=N,C));
D:=If(Cum(1)<N,A,C); {modified data array}
Mov(D,M,S);
Roy
MetaStock Tips & Tools
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
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.