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

Re: [Metastockusers] MS Formula Question



PureBytes Links

Trading Reference Links

Bob

Get a little daring - dump both your formulas into one test indicator and
see if your two signals are identical or not. This is a very simple exercise
and as well as a visual check you can use the data window to verify data
values for two or more signals.

Roy

> 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:
> Metastockusers-unsubscribe@xxxxxxxxxxx
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>



To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx

 

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