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

[amibroker] Re: Dimitris... QQQ Trendline Support again



PureBytes Links

Trading Reference Links

Phsst,
Since we know [http://www.amibroker.com/library/detail.php?id=105] 
the support line equation
trendlineS = aS * ( x -endt ) + bS; 
we may explore with
filter=abs(L-trendlineS)<coeff*L
and see the probable "touch". 
Coeff values between 0.01 and 0.02 give an idea.
Here is an example

per=3;// calibrate
x = Cum(1);
s1=L;
s11=H;
pS = TroughBars( s1, per, 1 ) == 0;
endt= LastValue(ValueWhen( pS, x, 1 ));
startt=LastValue(ValueWhen( pS, x, 2 ));
dtS =endt-startt;
endS = LastValue(ValueWhen( pS, s1, 1 ) );
startS = LastValue( ValueWhen( pS, s1, 2 ));
aS = (endS-startS)/dtS;
bS = endS;
trendlineS = aS * ( x -endt ) + bS;
Coeff=0.01;// calibrate 
F=abs(L-trendlineS)<Coeff*L;
AddColumn((abs(L-trendlineS))/L,"Coeff",1.3);
Filter=f;

Select your Coeff and explore.
As for your second question, do not forget the other interpretation, 
a "touch" is ideal for a bearish breakout...
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "Phsst" <phsst@xxxx> wrote:
> Dimitris,
> 
> A few weeks ago we exchanged some trendline dialogs when the QQQ's 
had
> hit trendline support.
> 
> I made the QQQ trade a day or two late on (10/02), but still made a
> nice profit.
> 
> Well, the Q's are bouncing around the lower support trendline again.
> 
> The only way I can figure to play it is to buy 'at support' again.
> 
> I now have a collection of 'trendline' indicators (from you and
> others) that I intend to convert into explores that will find these
> opportunities for me. But the 'Pattern Recognization' afl did not 
pick
> up on the Q's tonight.
> 
> Just wanted to mention this to you to see if you might be as curious
> as me about trying to trigger a signal on such a strong signal.
> 
> Phsst


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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/