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

[Metastockusers] Re: Formula Help please



PureBytes Links

Trading Reference Links

This appears to be a weighted moving average, either exponential or 
weighted. Price[2]is the close two days ago...ref(close,-2) in 
metastock terminology. ITREND[1] and ITREND[2] are the values of the 
ITREND indicator 1 & 2 days ago.

Preston


--- In Metastockusers@xxxxxxxxxxxxxxx, "rsmithtx2003" 
<raysmithtx@xxxx> wrote:
> I am having a difficult time converting the following Tradestation 
> language into Metastock. The existing code references itself for 
the 
> day prior and two days prior. My attempts to use the Prev have 
> failed thus far.
> 
> This is from the new Ehlers book on DSP.
> 
> Easy language code:
> Itrend= (alpha - alpha*alpha/4)*price+.5*alpha*alpha*price[1] - 
> (alpha - .75*alpha*alpha)*Price[2] + 2*(1-alpha)*ITREND[1] - (1-
> alpha)*(1-alpha)*ITREND[2];
> 
> The two references to itself have me stumped.
> 
> Any and all help appreciated.



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/zMEolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Metastockusers/

<*> To unsubscribe from this group, send an email to:
    Metastockusers-unsubscribe@xxxxxxxxxxxxxxx

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