PureBytes Links
Trading Reference Links
|
<font size=1 color=maroon
face="Courier New">Hi,
<font size=1 color=maroon
face="Courier New">
<font size=1 color=maroon
face="Courier New">
<font size=1 color=maroon
face="Courier New"><a
href="">http://www.amibroker.com/library/detail.php?id=82
<font size=1 color=maroon
face="Courier New">
<font size=1 color=maroon
face="Courier New">
<font size=1 color=maroon
face="Courier New">I made some changes:
<font size=1 color=maroon
face="Courier New">
<font size=1 color=maroon
face="Courier New">
<font size=1 color=maroon
face="Courier New">function<font size=1
color=black face="Courier New"> T3(n)
<font size=1 color=black
face="Courier New">{
<font size=1 color=black
face="Courier New">
<font size=1 color=black
face="Courier New"> a = 4.5<font size=1 color=green
face="Courier New">;<span
>
<font size=1 color=black
face="Courier New">
<font size=1 color=black
face="Courier New"> //alpha = <font size=1 color=fuchsia
face="Courier New">2<span
>/(n + <font
size=1 color=fuchsia face="Courier New">1<font size=1
color=black face="Courier New">);
<font size=1 color=black
face="Courier New"> e1 = <font size=1 color=blue
face="Courier New">EMA<span
>(<span
>Close, n);
<font size=1 color=black
face="Courier New"> e2 = <font size=1 color=blue
face="Courier New">EMA<span
> (e1, n);
<font size=1 color=black
face="Courier New"> e3 = <font size=1 color=blue
face="Courier New">EMA<span
> (e2, n);
<font size=1 color=black
face="Courier New"> e4 = <font size=1 color=blue
face="Courier New">EMA<span
> (e3, n);
<font size=1 color=black
face="Courier New"> e5 = <font size=1 color=blue
face="Courier New">EMA<span
> (e4, n);
<font size=1 color=black
face="Courier New"> e6 = <font size=1 color=blue
face="Courier New">EMA<span
> (e5, n);
<font size=1 color=black
face="Courier New">
<font size=1 color=black
face="Courier New"> <font size=1 color=maroon
face="Courier New">return<font size=1
color=black face="Courier New"> -a^<span
>3<font
size=1 color=black face="Courier New"> * e6 + (<font size=1 color=fuchsia
face="Courier New">3<span
> * a^<font
size=1 color=fuchsia face="Courier New">2<font size=1
color=black face="Courier New"> +<span
>3<font
size=1 color=black face="Courier New"> * a^<font size=1 color=fuchsia
face="Courier New">3<span
>) * e5 + (-<font
size=1 color=fuchsia face="Courier New">6<font size=1
color=black face="Courier New"> * a^<span
>2<font
size=1 color=black face="Courier New"> - <font size=1 color=fuchsia
face="Courier New">3<span
> *
<font size=1 color=black
face="Courier New"> a - <font size=1 color=fuchsia
face="Courier New">3<span
> * a^<font
size=1 color=fuchsia face="Courier New">3<font size=1
color=black face="Courier New">) * e4 + (<font size=1 color=fuchsia
face="Courier New">1<span
> + <font
size=1 color=fuchsia face="Courier New">3<font size=1
color=black face="Courier New"> * a + a^<font size=1 color=fuchsia
face="Courier New">3<span
> + <font
size=1 color=fuchsia face="Courier New">3<font size=1
color=black face="Courier New"> * a^<span
>2<font
size=1 color=black face="Courier New">) * e3;
<font size=1 color=black
face="Courier New">
<font size=1 color=black
face="Courier New">}
<font size=1 color=black
face="Courier New">
<font size=1 color=black
face="Courier New">
<font size=1 color=black
face="Courier New">Buy<font size=1 color=black
face="Courier New"> = T3(<span
>3<font
size=1 color=black face="Courier New">) > T3(<font size=1 color=fuchsia
face="Courier New">5<span
>);
<font size=1 color=black
face="Courier New">Sell<font size=1 color=black
face="Courier New"> = T3(<span
>3<font
size=1 color=black face="Courier New">) < T3(<font size=1 color=fuchsia
face="Courier New">5<span
>);
<font size=1 color=black
face="Courier New">
<font size=1 color=black
face="Courier New">
<font size=1 color=black
face="Courier New">Gedi
<font size=1 color=black
face="Courier New">
<font size=3
face="Times New Roman">
<span lang=HE dir=RTL
>îàú<span
dir=LTR>:<font
size=2 face=Tahoma> Prashanth
[mailto:prash454@xxxxxxxx]
ðùìç<span
dir=LTR>: ã<span
dir=LTR> 04 ôáøåàø<span
dir=LTR> 2004 10:01
àì<span
dir=LTR>: amibroker@xxxxxxxxxxxxxxx
ðåùà<span
dir=LTR>: [amibroker] Better Moving Averages and Oscillators
<font size=2
face="Courier New">Hi,<font
size=2 face="Courier New">
Has anyone coded the metastock formula into afl
for "Better Moving
Averages and Oscillators" by
CedarCreekTrading in his post.
Metastock code given in the document;
Thus the Metastock 6.5 code for T3 is:
periods:=Input("Periods? ",1,63,5);
a:=Input("Hot? ",0,2,.7);
e1:=Mov(P,periods,E);
e2:=Mov(e1,periods,E);
e3:=Mov(e2,periods,E);
e4:=Mov(e3,periods,E);
e5:=Mov(e4,periods,E);
e6:=Mov(e5,periods,E);
c1:=-a*a*a;
c2:=3*a*a+3*a*a*a;
c3:=-6*a*a-3*a-3*a*a*a;
c4:=1+3*a+a*a*a+3*a*a;
c1*e6+c2*e5+c3*e4+c4*e3;
Thanks in advance
Prashanth
Send BUG
REPORTS to bugs@xxxxxxxxxxxxx<span
>
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx
(Web page: <a
href="">http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
<font size=2
face="Courier New">
<span
>Yahoo! Groups Links<font
size=2 face="Courier New">
<span
>To visit your group on
the web, go to:
http://groups.yahoo.com/group/amibroker/
<span
>To unsubscribe from
this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<span
>Your use of Yahoo!
Groups is subject to the Yahoo!
Terms of Service.
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|