PureBytes Links
Trading Reference Links
|
I tried to modify DT's Ti3 formula with CCI to add in some Buy
signals, but something is just not right the signal is trigger too late.
Any ideas on how to improve the Buy signals.
Much appreciate any help.
Brian
//the Ti3 vs TEMA for the CCI() sell signals
H1=H;L1=L;
n=Param("N",30,20,30,5);
y=CCI(n);
T10=TEMA(Y,10);T20=TEMA(Y,20);
Plot(C,"Close",1,64);
H=L=T20;
S1=SAR(0.05,0.5);
Buy = Cross(T10,S1)*(T20<-100);
Sell=Cross(S1,T10)*(T20>100);
PlotShapes(shapeDownTriangle*Sell,colorPink);
PlotShapes(shapeUpTriangle*Buy,colorPaleGreen);
H=H1;L=L1;
//the Ti3 function
function T3(price,periods,s)
{
e1=EMA(price,periods);
e2=EMA(e1,Periods);
e3=EMA(e2,Periods);
e4=EMA(e3,Periods);
e5=EMA(e4,Periods);
e6=EMA(e5,Periods);
c1=-s*s*s;
c2=3*s*s+3*s*s*s;
c3=-6*s*s-3*s-3*s*s*s;
c4=1+3*s+s*s*s+3*s*s;
Ti3=c1*e6+c2*e5+c3*e4+c4*e3;
return ti3;
}
n=Param("N",30,20,30,5);
y=CCI(n);
p1=Param("p1",5,5,7,1);
p2=Param("p2",79,79,87,1)/100;
T=T3(y,p1,p2);
H=L=T;
S1=SAR(0.05,0.5);
Buy = Cross(T,S1)*(T<-100);
Sell=Cross(S1,T)*(T>100);
PlotShapes(shapeDownArrow*Sell,colorRed);
PlotShapes(shapeUpArrow*Buy,colorGreen);
GraphXSpace=10;
------------------------ 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/
|