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

[EquisMetaStock Group] MS Formula Question



PureBytes Links

Trading Reference Links

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

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .



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/