[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EquisMetaStock Group] Re: MS Formula Question



PureBytes Links

Trading Reference Links

Bob,

Formula #1 is the same as

SMA:=Mov(CLOSE,10,S);
ROC(sma,1,$);



Preston



--- In equismetastock@xxxxxxxxxxxxxxx, "bob1@xxxx" <bob1@xxxx> wrote:
> All:
> 
> I have a Metastock formula question using the ref function.
> I want to graph the slope of a moving average.  Here are two
> possible formulas.  Do they have the same affect?
> 
> #1
> SMA:=Mov(CLOSE,10,S);
> SMA-Ref(SMA,-1);
> 
> #2
> Mov(CLOSE,10,S)-Mov(Ref(CLOSE,-1),10,S);
> 
> The bigger question is does it matter where I apply the Ref
> function?  Either the ref -1 when calculating the second
> moving average shown in example #2, or doing a ref -1 on the
> results of the first moving average shown in example #1?
> 
> This becomes an issue when dealing with complicated formulas
> such as a sine moving average or an adaptive moving average.
> Example #1 is easier to code and understand.
> 
> I hope that my question is clear.
> Thanks.
> 
> Bob



To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/