PureBytes Links
Trading Reference Links
|
here is what I was trying to do
if rh1>rh2 and rl1>rl2 I wanted to paint the bars yellow
if rl1<rl2 and rh1<rh2 I wanted to paint the bars red
Possible?
--- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
> Are you trying to plot the information or see it in AA?
>
> In AA select a stock then choose the number of days to look back
(n=xdays)
> then run.....
>
>
> Filter=1;
> 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);
>
> AddColumn(Condp,"Test");
> AddColumn(rh1,"RH1");
> AddColumn(rh2,"RH2");
>
> Plot(C,"",4,64);
> Plot(LastValue(RH1),"",5,1);
> Plot(LastValue(RH2),"",4,1);
> Plot(condp,"",colorYellow,2|styleOwnScale);
>
> 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
> -----Original Message-----
> From: epintoem [mailto:epintoem@x...]
> Sent: Thursday, June 12, 2003 10:19 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [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 values
> of the high when condp is true.
>
> what is it that I am doing wrong?
>
>
>
> Yahoo! Groups Sponsor
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/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/
|