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

RE: [amibroker] AFL question...



PureBytes Links

Trading Reference Links




Are 
you trying to plot the information or see it in AA?
<SPAN 
class=223234314-12062003> 
In AA 
select a stock then choose the number of days to look back (n=xdays) then 
run.....
<SPAN 
class=223234314-12062003> 
<FONT 
color=#000000> 
Filter=1<FONT color=#0000ff 
face=Arial size=2>;<FONT 
color=#0000ff>
condP=Ref(H<FONT 
face=Arial>,-1)>=Ref(H,-2) 
AND Ref(H<FONT 
face=Arial>,-1)>H AND<FONT 
face=Arial> Ref(H,-1)>Ref(C<FONT 
face=Arial>,-3<FONT color=#0000ff 
face=Arial>);<FONT 
color=#0000ff>
condT=Ref(L,-2) >= 
Ref(L,-1) AND 
L>Ref(L,-1) 
AND Ref(L<FONT 
face=Arial>,-1)<Ref(Close,-3<FONT 
color=#282828>);<FONT 
size=2>
rh1= ValueWhen( Condp,H, 
1<FONT color=#0000ff 
face=Arial>);<FONT 
color=#0000ff>
rh2=ValueWhen(condp,H,2<FONT 
color=#282828>);
 
AddColumn(Condp,<FONT 
color=#ff00ff>"Test");<FONT 
color=#0000ff>
AddColumn(rh1,<FONT 
color=#ff00ff>"RH1");<FONT 
color=#0000ff>
AddColumn(rh2,<FONT 
color=#ff00ff>"RH2"<FONT face=Arial 
size=2>);
 
Plot(<FONT 
color=#000000>C<FONT 
color=#282828>,""<FONT 
color=#282828>,4<FONT 
color=#282828>,64<FONT 
color=#282828>);<FONT 
face=Arial>
Plot(<FONT 
color=#0000ff>LastValue(RH1),<FONT 
color=#ff00ff>"",<FONT 
color=#ff00ff>5,<FONT 
color=#ff00ff>1);<FONT 
color=#0000ff>
Plot(<FONT 
color=#0000ff>LastValue(RH2),<FONT 
color=#ff00ff>"",<FONT 
color=#ff00ff>4,<FONT 
color=#ff00ff>1);<FONT 
color=#0000ff>
Plot(condp,<FONT 
color=#ff00ff>"",<FONT 
color=#000000>colorYellow<FONT 
face=Arial>,2<FONT 
color=#282828>|<FONT 
color=#000000>styleOwnScale<FONT color=#282828 
face=Arial size=2>);
 
To see 
how those numbers match up on your chart place the same code in IB. The yellow 
verticle lines are the condp occurances with the red/green lines representing 
the last values for rh1 and 2...
 
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: epintoem 
[mailto:epintoem@xxxxxxxxx]Sent: Thursday, June 12, 2003 10:19 
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] AFL 
question...condP=Ref(H,-1)>=Ref(H,-2) AND 
Ref(H,-1)>H AND Ref(H,-1)>Ref(C,-3);condT=Ref(L,-2) >= Ref(L,-1) 
AND L>Ref(L,-1) AND Ref(L,-1)<Ref(Close,-3);rh1= ValueWhen( Condp,H, 
1);rh2=valuewhen(condp,h,2);All I am trying to do here is trying to 
determine the last two valuesof the high when condp is true. what is 
it that I am doing wrong?Send 
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor












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 the Yahoo! Terms of Service.