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

[amibroker] Re: coloring bars



PureBytes Links

Trading Reference Links

That works Anthony, but it might be easier to manipulate at a later 
date if done:

BarColor=Iif(C<Ref(C,-1) AND Ref(C,-1)>Ref(C,-2) AND Ref(C,-2)<Ref(C,-
3),"Pick a color for FilterL",Iif(C>Ref(C,-1) AND Ref(C,-1)<Ref(C,-2) 
AND Ref(C,-2)>Ref(C,-3),"Pick a color for FilterH","Pick a non-Filter 
color"));

Plot(C,"close",BarColor,styleCandle);


--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx> 
wrote:
> For indicator builder do you want this:
>  
> FilterL = C<Ref(C,-1) AND Ref(C,-1)>Ref(C,-2) AND Ref(C,-2)<Ref(C,-
3);
> FilterH = C>Ref(C,-1) AND Ref(C,-1)<Ref(C,-2) AND Ref(C,-2)>Ref(C,-
3);
> 
> Plot(C,"close",IIf(Filterl,colorYellow,IIf(Filterh,colorBrightGreen
> colorBlack)),styleCandle);
> 
> Anthony
>  
> -------Original Message-------
>  
> From: amibroker@xxxxxxxxxxxxxxx
> Date: Monday, May 12, 2003 12:36:51 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] coloring bars
>  
> How would I color bars for the following conditions?
>  
> FilterL = C<Ref(C,-1) AND Ref(C,-1)>Ref(C,-2) AND Ref(C,-2)<Ref(C,-
3);
> FilterH =  C>Ref(C,-1) AND Ref(C,-1)<Ref(C,-2) AND Ref(C,-2)>Ref(C,-
3);
>  
> Thanks
>  
>  
>  
> Yahoo! Groups Sponsor
>  
> - Model -- Please Select a Make -
> Zip:


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/YoVfrB/XP.FAA/uetFAA/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/