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

Re: [amibroker] Help for an aspiring Trader



PureBytes Links

Trading Reference Links




Earlier this week 
there was some discussion regarding the Tilson T3 indicator. I am sorry but do 
not recall who initiated the thread nor who originally posted the code. After a 
bit of experimenting I found it to be an interesting moving average. I found it 
easier to play with as a function than in its raw form. Here it is. To call it 
just use T3(price,periods) as in T3(c,50). You can of course substitute your 
favorite indicator for price such as T3(rsi(14),20) ....... 
Regards, 
Jayson 
 
function<FONT color=#282828 
size=2> T3(price,periods)
 
{
s = <FONT face=Arial 
size=2>0.84<FONT face=Arial 
color=#000000>;
e1=<FONT face=Arial 
size=2>EMA<FONT face=Arial 
color=#000000>(price,periods);
e2=<FONT face=Arial 
size=2>EMA<FONT face=Arial 
color=#000000>(e1,Periods);
e3=<FONT face=Arial 
size=2>EMA<FONT face=Arial 
color=#000000>(e2,Periods);
e4=<FONT face=Arial 
size=2>EMA<FONT face=Arial 
color=#000000>(e3,Periods);
e5=<FONT face=Arial 
size=2>EMA<FONT face=Arial 
color=#000000>(e4,Periods);
e6=<FONT face=Arial 
size=2>EMA<FONT face=Arial 
color=#000000>(e5,Periods);
c1=-s*s*s;
c2=<FONT 
size=2>3*s*s+3<FONT 
color=#282828 size=2>*s*s*s;
c3=-<FONT 
size=2>6*s*s-3<FONT 
size=2>*s-3<FONT 
face=Arial color=#000000>*s*s*s;
c4=<FONT 
size=2>1+3<FONT 
size=2>*s+s*s*s+3<FONT color=#282828 
size=2>*s*s;
<FONT face=Arial 
color=#000000>Ti3=c1*e6+c2*e5+c3*e4+c4*e3;<FONT 
color=#800000 size=2>
return<FONT color=#282828 
size=2> ti3;
}<FONT color=#0000ff 
size=2>
Plot<FONT 
size=2>(C<FONT 
size=2>,"",<FONT 
size=2>4,64<FONT 
color=#282828 size=2>);<FONT 
color=#0000ff size=2>
Plot<FONT 
size=2>(T3(C<FONT 
size=2>,50),<FONT 
size=2>"T3",<FONT 
size=2>colorYellow,<FONT 
size=2>1<FONT face=Arial 
color=#000000>);
Plot<FONT face=Arial 
size=2>(t3(C<FONT face=Arial 
size=2>,20<FONT face=Arial 
size=2>),"T3"<FONT face=Arial 
size=2>,colorBlue<FONT face=Arial 
size=2>,1<FONT face=Arial color=#282828 
size=2>);


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 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.