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

RE: [amibroker] Simple Plot() question



PureBytes Links

Trading Reference Links

You might also want to shift the colors back a bar, but if you're NEVER
getting Green, follows Ara's advice first.

  Ref(IIf(Cond1,colorGreen,IIf(Cond2,coloRed,colorBlue)),-1);

It's possible you might need this variation instead:

  IIf(Ref(Cond1,-1),colorGreen,IIf(Ref(Cond2,-1),coloRed,colorBlue));
--
Terry

-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
Behalf Of Ara Kaloustian
Sent: Sunday, November 27, 2005 18:24
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Simple Plot() question

The first statement is proper... look at your Cond1 definition for
problems


----- Original Message ----- 
From: "owenbdavies" <owen5819@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, November 27, 2005 5:18 PM
Subject: [amibroker] Simple Plot() question


> I'd like to use different colors for each of three possible
> conditions. The obvious ways (at least to me) are:
> 
> IIf(Cond1,colorGreen,IIf(Cond2,coloRed,colorBlue)); Or
> 
> IIf(Cond1,colorGreen,colorBlue) + IIf(Cond2,colorRed,colorBlue);
> 
> Unfortunately, with the first method, only the second IIf statement
> counts; the parts of the line that should be green end up blue. And
> with the second method, nothing shows up at all; the tooltips give the
> appropriate value, but no line appears.
> 
> Can anyone tell me how to make this work?
> 
> Many thanks.
> 
> Owen
> 
> 
> 
> 
> 
> 
> Please note that this group is for discussion between users only.
> 
> To get support from AmiBroker please send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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/