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

Re: [amibroker] Easy Code Question



PureBytes Links

Trading Reference Links

Hi Dean,

The Immediate If function only returns a value so you need to place the
plot statement outside of that function.

BarColor = IIf( Open < Ref( L, -1 ), colorRed , IIf( Open > Ref( H, -1 ), colorWhite,  colorSkyblue ));
Plot( C, " ", BarColor, 128 );
GraphXSpace = 3;


Regards,
William Peters (AmiBroker Group Moderator)
www.amitools.com




Saturday, December 18, 2004, 1:36:34 PM, you wrote:



DH> Seems to me this should work - I'm trying to plot a simple bar graph
DH> that plots gap bars a different color.

DH> IIf(Open<Ref(L,-1),Plot(C,"
DH> ",colorRed,128),IIf(Open>Ref(H,-1),Plot
DH> (C," ",colorWhite,128),Plot(C," ",colorSkyblue,128)));


DH> Shouldn't this work as stated - gap downs s/b red , gap ups s/b white
DH> and everything else skyblue. Works but all bars are red ?

DH> Any help much appreciated ....


DH> Best to all in holidays ....


DH> Dean H.



------------------------ 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/