PureBytes Links
Trading Reference Links
|
Here is some quite accurate Sell signals that I use for the last 2
years or so. [the signals were there all the time, I didn't know
it...]
[^IXIC, ^NDX, CSCO etc.]
The lag is 0 or +1, but, sometimes, the signal anicipates the
upcoming great [and probably ...final] peak.
As for the crazy 99 days, for any re-entry the repetitive Sell
signals would protect your profits and would help to avoid the
horrible bubble trap.
Any uptrend will come to an end, it is nice to have some cash at the
end [instead of dreams for more and more...]
// Some money from CCI()
n=Param("N",30,20,30,5);
y=CCI(n);
T10=TEMA(Y,10);
T20=TEMA(Y,20);
Plot(C,"Close",1,64);
C=H=L=T20;
S1=SAR(0.05,0.5);
Sell=Cross(S1,T10)*(T20>100);
PlotShapes(shapeDownArrow*Sell,colorRed);
GraphXSpace=5;
There are many variations of this code, I prefer to use this one.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx>
wrote:
> Now, if you dont mind to add two more lines, you may have a more
> independent code and select the colors you prefer.
>
> y=CCI(20);
> Cond1=y>0;
> Cond2=y<0;
> firstbars=Param("f",5,3,10,1);
> Cond11=cond1*(BarsSince(Cond2)<=firstbars);
> Cond111=cond1*(BarsSince(Cond2)>firstbars);
> Cond22=cond2*(BarsSince(Cond1)<=firstbars);
> Cond222=cond2*(BarsSince(Cond1)>firstbars);
> Color=
> Cond11*colorBrightGreen+Cond111*colorGreen+
> Cond22*colorRed+Cond222*colorDarkRed;
> Plot(y,"y",Color,2);
>
> Replace above colorRed etc with your preference. Play with param
for
> the final visual part.
> Dimitris Tsokakis
> --- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS"
<TSOKAKIS@xxxx>
> wrote:
> > Dennis,
> > the following will give you different color for the first 5
positive
> > [or negative] days
> > y=CCI(20);
> > Cond1=y>0;Cond2=y<0;
> > Cond11=cond1*(BarsSince(Cond2)<=5);
> > Cond22=cond2*(BarsSince(Cond1)<=5);
> > Color=Cond1*24+Cond2*43+Cond11+Cond22;
> > Plot(y,"y",Color,2);
> > Dimitris Tsokakis
> > --- In amibroker@xxxxxxxxxxxxxxx, "theoldchartreader"
> > <theoldchartreader@xxxx> wrote:
> > > Hi,
> > > This is what I am using , this gives me a green and red
histogram
> > > above and below the zero line.
> > > What I would like to add is a different color bars, for the
first
> 5
> > > days above and below the zero line.
> > >
> > >
> > > paint = IIf(CCI(20)>0, colorGreen, colorRed) ;
> > >
> > > Plot(CCI(20), "Cci", paint, styleHistogram);
> > >
> > >
> > > Thank you,
> > > Dennis
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:
http://docs.yahoo.com/info/terms/
|