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

Re: [amibroker] Help with Metastock Formula



PureBytes Links

Trading Reference Links

ew = MA(C,5) - MA(C,35);
 
green = IIf(ew > Ref(ew,-1),ew,0); //Assumes Ref(ew,-1) is yesterday's ew
red = IIf(ew < Ref(ew,-1),ew,0);
 
Buy = green; //Not familiar with original syntax in MS
Sell = red; //Assumed you wanted a buy or sell

//Or you may want to plot the results
Plot(green,"green",colorgreen);
Plot(red,"red",colorred);

-- 
Terry


From: "ct1942" <ct1942@xxxxxxxxx>
Reply-To: amibroker@xxxxxxxxxxxxxxx
Date: Thu, 28 Oct 2004 01:21:48 -0000
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Help with Metastock Formula


Need help in translating this Metastock formula to AFL:

ew:=Mov(C,5,S)-Mov(C,35,S);
 
green:=If(ew>Ref(ew,-1),ew,0);
red:=If(ew<Ref(ew,-1),ew,0);
 
green;
red;

Thanks

Cordell
ct1942@xxxxxxxxx





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html


Yahoo! Groups Sponsor
 
 ADVERTISEMENT
 <http://us.ard.yahoo.com/SIG=1293e161f/M=315388.5529720.6602079.3001176/D=g
roups/S=1705632198:HM/EXP=1099012927/A=2372354/R=0/SIG=12id813k2/*https://ww
w.orchardbank.com/hcs/hcsapplication?pf=PLApply&media=EMYHNL40F21004SS>


Yahoo! Groups Links
* To visit your group on the web, go to:
* http://groups.yahoo.com/group/amibroker/
*  
* To unsubscribe from this group, send an email to:
* amibroker-unsubscribe@xxxxxxxxxxxxxxx
<mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
*  
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .




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

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

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

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