PureBytes Links
Trading Reference Links
|
Dean, try this instead:
Plot(C,"Open
Gap",IIf(O<Ref(L,-1),colorRed,IIf(O>Ref(H,-1),colorWhite,colorSkyblue)),styleHistogram);
Regards,
Bob Johnson
----- Original Message -----
From: "Dean Hodgins" <deanhodgins@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, December 18, 2004 12:36 PM
Subject: [amibroker] Easy Code Question
>
>
>
> Seems to me this should work - I'm trying to plot a simple bar graph
> that plots gap bars a different color.
>
> IIf(Open<Ref(L,-1),Plot(C," ",colorRed,128),IIf(Open>Ref(H,-1),Plot
> (C," ",colorWhite,128),Plot(C," ",colorSkyblue,128)));
>
>
> Shouldn't this work as stated - gap downs s/b red , gap ups s/b white
> and everything else skyblue. Works but all bars are red ?
>
> Any help much appreciated ....
>
>
> Best to all in holidays ....
>
>
> Dean H.
>
>
>
>
>
>
>
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|