PureBytes Links
Trading Reference Links
|
Jim
I believe there is a slight flaw in your answer to Waheeb's question.
HHV includes today, so HHV(MOV(C,3,S),3) gives the highest value of the
3-period simple moving average of the Close within the last 3 days, today
(the 22nd), yesterday (the 21st), and the period before yesterday (the
18th of July).
The REF function is exclusive of today, so REF(MOV(C,3,S),-3) would, on
the 22nd, produce the value of the 3-period simple moving average of the
Close as it was on the 17th.
Robert M
----------
From: JimGinVA[SMTP:JimGinVA@xxxxxxxxxxxxx]
Sent: Tuesday, July 22, 1997 9:47 AM
To: waheeb; a
Subject: Re: hhv & ref are confusing me
Waheeb,
The Highest High Value function looks at each of your moving
averages
for the last three days and returns the highest one. So it may be
today's,
yesterdays, or the day before that, whichever is highest. The Ref
function
only looks at the day you designate, in this case the moving average from
three days ago, except that you have an error, the value should be -3,
not
plus 3. If you use +3 in the ref formula, it will look three days into
the
future. That's hard to do today <G>. The HHV and Ref function will only
be the same when the
moving average three days ago is the highest one.
Hope that helped.
Jim
----------
From: waheeb <WAHEEB@xxxxxxxxxxxxxx>
To: a <metastock-list@xxxxxxxxxxxxx>
Subject: hhv & ref are confusing me
Date: Monday, July 21, 1997 6:48 PM
I am testing some MAs and when I add hhv or ref to them they give better
results but I don?t understand which date they referring to. For example
lets say today is Tuesday July 22 and the trading data for this day have
been added to metastock which date are the following formulas referring
to
and what is the value they are offering:
hhv(mov(c, 3, S) , 3)
Ref(Mov(c, 3, S) , 3)
Thanks for your help
----------
|