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

[amibroker] Re: HISTORICAL TRENDLINES and BREAKOUTS



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx> 
wrote:
> Phsst,
> you may add slope characteristics to emphasize the channels.
> Take a look at Patterns Recognition in the Library, there is a // 
> column to get an idea and then calibrate the slopes condition 
> according to your point of view...
> BTW, your opinion on Qs was correct, I stepped in BEAS from 14:00 
to 
> 14:30 [with the little help of my friends, Mr Greenspan etc]. 

[Two days later, CE Unterberg Towbin upgraded BEAS from ST Mkt 
Perform to ST Buy .
http://biz.yahoo.com/c/20031031/u.html?beas
Should I...]


It was 
> nice to see the waken up buyers of the last h. Another round and we 
> shall check it again...
> Dimitris Tsokakis 
> --- In amibroker@xxxxxxxxxxxxxxx, "Phsst" <phsst@xxxx> wrote:
> > Dimitris,
> > 
> > Yes, I had NOT missed the unique feature of your code related to
> > moving the cursor and watching the trendlines move and adjust to 
the
> > new period.
> > 
> > I have now had a chance to look at all of the explores and 
graphics
> > that your generous work has produced, and I should tell you that 
all
> > of your work looks like it has potential for developing trading 
> systems.
> > 
> > But I'll share with you the area that is the most interest to me, 
> and
> > consequently, the area that I'll be focusing upon for the near 
> future:
> > 
> > Your Trendline Support Explore using Coefficients.  This explore 
is
> > showing the most promise for my research, for reasons that I 
might 
> not
> > have articulated before.
> > 
> > If you will look at the QQQ chart... you will notice that we have 
> had
> > multiple 'touches' on the lower trendline over the past months. IN
> > ADDITION, the upper trendline has a very similar slope, rate of 
> change
> > and 'touches' indicating very good potential for 'channel' trades 
on
> > both the long and short sides.
> > 
> > An explore tonight using your Trendline Support with Coefficients
> > against my QP2 database 'Top 600' watchlist (these 600 stocks 
> account
> > for about 80% of the dollar volume of trading in the US markets)
> > revealed 30 potential setups... of which LNCR, MWD, RD, SBUX & TOL
> > were of particular interest because of the 'channel' 
> characteristics.
> > But none of these had a closing price that was close enough the
> > support line for me, thus I might consider placing buy limit 
orders 
> on
> > these 'AT' the support line level.
> > 
> > I'll be altering your 'coefficient' version of explore to look 
for 
> the
> > following additions characteristics:
> > 
> > . a matching upper and lower trendline forming a channel
> > . filtering for issues at both 'resistance' and 'support'
> > 
> > Then, after the explore is picking the right candidates, I'll 
> convert
> > it to a backtest and see how effective it really is.
> > 
> > I thought you might appreciate this feedback.
> > 
> > Stay tuned...
> > 
> > Regards, (and thank you very much for your contributions)
> > 
> > Phsst
> > 
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" 
> <TSOKAKIS@xxxx>
> > wrote:
> > > Phsst,
> > > Paste the /*HISTORICAL TRENDLINES and BREAKOUTS*/  formula in 
an 
> > > empty ind.builder window, select scaling automatic and select, 
> for 
> > > example, ^NDX ticker.
> > > Move your cursor [with the keyboard arrow] from June20, 2003 to 
> > > Aug15, 2003 and you will see the trendlines movie for this 
period.
> > > Dimitris Tsokakis
> > > --- In amibroker@xxxxxxxxxxxxxxx, "Phsst" <phsst@xxxx> wrote:
> > > > Dimitris,
> > > > 
> > > > I see you dream about this stuff too, only your afl gets 
> changed 
> > > while
> > > > mine doesn't.
> > > > 
> > > > Very nice work.
> > > > 
> > > > Phsst
> > > > 
> > > > --- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" 
> > > <TSOKAKIS@xxxx>
> > > > wrote:
> > > > > /*HISTORICAL TRENDLINES and BREAKOUTS, by D. Tsokakis, 
> Oct2003*/
> > > > > x = Cum(1);
> > > > > per = 3;// CALIBRATE THE ZIG() SENSITIVITY
> > > > > s1=L;s11=H;
> > > > > pS = TroughBars( s1, per, 1 ) == 0;
> > > > > endt=SelectedValue(ValueWhen( pS, x ,1));
> > > > > startt=SelectedValue(ValueWhen( pS, x ,2));
> > > > > dtS =endt-startt;
> > > > > endS = SelectedValue((ValueWhen( pS, s1,1) ));
> > > > > startS = SelectedValue(( ValueWhen( pS, s1 ,2)));
> > > > > aS = (endS-startS)/dtS;bS = endS;
> > > > > trendlineS = aS * ( x -endt ) + bS;//SUPPORT LINE
> > > > > pR = PeakBars( s11, per, 1 ) == 0;
> > > > > endt1= SelectedValue(ValueWhen( pR, x, 1));
> > > > > startt1=SelectedValue(ValueWhen( pR, x, 2 ));
> > > > > dtR =endt1-startt1;
> > > > > endR = SelectedValue(ValueWhen( pR, s11, 1 ) );
> > > > > startR = SelectedValue( ValueWhen( pR, s11, 2 ));
> > > > > aR = (endR-startR)/dtR;bR = endR;
> > > > > trendlineR = aR * ( x -endt1 ) + bR;//RESISTANCE LINE 
> > > > > first=Min(startt,startt1);Last=Max(endt,endt1);
> > > > > d=10;// INCREASE d TO EXTEND THE LINES
> > > > > bullishbreakout=x>endt1 AND x<last+d AND Cross
(C,trendlineR);
> > > > > bearishbreakout=x>endt AND x<last+d AND Cross(trendlineS,C);
> > > > > Plot(C,"Close",IIf(bullishbreakout,colorBrightGreen,IIf
> > > > > (bearishbreakout,colorRed,colorBlack)),64);
> > > > > Plot(IIf(x>=first -d AND x<=Last+d,trendlineS,-
> > > > > 1e10),"Support",colorBrightGreen,1);
> > > > > Plot(IIf(x>=first-d AND x<=Last+d,trendlineR,-
> > > > > 1e10),"Resistance",colorRed,1);
> > > > > 
> > > > > Place the cursor in a previous bar and see the trendlines 
for 
> > > this 
> > > > > period. 
> > > > > Move the cursor [to the left or to the right] to see the 
> > > formation 
> > > > > changes.
> > > > > The Resistance breakouts are painted green, the Support 
> breakouts 
> > > are 
> > > > > red. 
> > > > > Dimitris Tsokakis
> > > > > --- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" 
> > > <TSOKAKIS@xxxx> 
> > > > > wrote:
> > > > > > Select an empty IB window and paste the
> > > > > > 
> > > > > >  /*HISTORICAL TRENDLINES, v.2.*/
> > > > > > x = Cum(1);per = 3;s1=L;s11=H;
> > > > > > pS = TroughBars( s1, per, 1 ) == 0;
> > > > > > endt=SelectedValue(ValueWhen( pS, x ,1));
> > > > > > startt=SelectedValue(ValueWhen( pS, x ,2));
> > > > > > dtS =endt-startt;
> > > > > > endS = SelectedValue((ValueWhen( pS, s1,1) ));
> > > > > > startS = SelectedValue(( ValueWhen( pS, s1 ,2)));
> > > > > > aS = (endS-startS)/dtS;bS = endS;
> > > > > > trendlineS = aS * ( x -endt ) + bS;//SUPPORT LINE
> > > > > > pR = PeakBars( s11, per, 1 ) == 0;
> > > > > > endt1= SelectedValue(ValueWhen( pR, x, 1));
> > > > > > startt1=SelectedValue(ValueWhen( pR, x, 2 ));
> > > > > > dtR =endt1-startt1;
> > > > > > endR = SelectedValue(ValueWhen( pR, s11, 1 ) );
> > > > > > startR = SelectedValue( ValueWhen( pR, s11, 2 ));
> > > > > > aR = (endR-startR)/dtR;bR = endR;
> > > > > > trendlineR = aR * ( x -endt1 ) + bR;//RESISTANCE LINE 
> > > > > > first=Min(startt,startt1);Last=Max(endt,endt1);
> > > > > > Plot(IIf(x>=first -10 AND x<=Last+10,trendlineS,-
> > > > > > 1e10),"Support",colorBrightGreen,1);
> > > > > > Plot(IIf(x>=first-10 AND x<=Last+10,trendlineR,-
> > > > > > 1e10),"Resistance",colorRed,1);
> > > > > > Plot(C,"Close",colorBlack,64);
> > > > > > 
> > > > > > Place your cursor at the last bar and move it slowly to 
the 
> > > left.
> > > > > > Your graph will recall, one by one, the trendlines of the 
> > > past.!!
> > > > > > Dimitris Tsokakis


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/vhSowB/XP.FAA/3jkFAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 

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