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

Re: [amibroker] Follow Through Code



PureBytes Links

Trading Reference Links


Hello,
 
Consider using HighestSince, LowestSince, 
HighestSinceBars and LowestSinceBars, ValueWhen functions.
 
point1 = GapUp() AND volume > 1.4 * ema( 
volume, 50 );
point2 = Cross( Close, ValueWhen( point1, High ) 
); // generates a signal when close rises above high reached on 
point1
 
or
 
point2 =  High == HighestSince( point1, High 
); // generates a signal when today's high is the highest high since 
point1
 
Best regards,Tomasz Janeczko===============AmiBroker - the 
comprehensive share manager.<A 
href="">http://www.amibroker.com
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
Mohan Yellayi 

To: <A title=amibroker@xxxxxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: Saturday, November 17, 2001 4:17 
PM
Subject: [amibroker] Follow Through 
Code

Can anyone ahre an example of how to code for a 
follow through condition.What I am looking for is the following.
 
1. A stock went up or down on some condition - 
Gap up or down, Up(down) on good volume ( say twice above the 50 DMA of 
Volume) some time ago.
 
2. Today the stock closed above (below) , from 
when condition 1 happened.
 
I tried to modify Jon's code for a 10 day high, 
But it is not exactly what I am loking for.
 
 

//backP = 260;
H20 = HHV<FONT 
face="Courier New" color=#000000 size=2>(H,<FONT 
face="Courier New" color=#ff00ff size=2>10<FONT face="Courier New" 
color=#000000 size=2>);
backP=3<FONT 
face="Courier New" color=#000000 size=2>;
shortP = <FONT face="Courier New" color=#ff00ff 
size=2>10<FONT face="Courier New" color=#000000 
size=2>;
//sumNewHigh = Sum( HHV(H,backP)==H20, shortP);<FONT 
face="Courier New" color=#000000 size=2>
sumNewHigh = <FONT face="Courier New" color=#0000ff 
size=2>Sum( 
H==H20, shortP);
Graph0 = sumNewHigh;
/* Filter = sumNewHigh >= 
2<FONT 
face="Courier New" color=#000000 size=2>;*/
 
Thanks for 
anyhelp.
 
regards
 
MohanYour 
use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.