You can have as many colors as you want just by following the same IIF pattern. 
The final color of the final nested IIF is the color to use when all others do 
not apply.

colors = IIF(condition1, colorGreen, IIF(condition2, colorRed, colorYellow));

Mike

--- In amibroker@yahoogroups.com, "Vinay Gakkhar" <vgakk...@...> wrote:
>
> Dear Ara,
> 
> Thanks for your immediate reply.
> 
> As help files tell me how to have 2 colors, and I need 3 colors, that is why 
> I am seeking guidance from persons like you.
> 
> Can you please help me?
> 
> Best regards,
> 
> vgakkhar
> 
> 
> On Mon, 14 Jun 2010 11:44:35 +0530, Ara Kaloustian <a...@...> wrote:
> 
> > Look in help files for PlotShapes
> >   ----- Original Message -----
> >   From: Vinay Gakkhar.
> >   To: Amibroker
> >   Sent: Sunday, June 13, 2010 10:46 PM
> >   Subject: [amibroker] Need help in coding
> >
> >
> >   I use the following to get price bars in red, green or yellow color; red 
> > for downtrend, green for uptrend and yellow for unclear trend.
> >
> >   PlotOHLC( Open, High, Low, Close, "Price", color, styleLine );
> >
> >   How should my PlotShapes statement be so that I can get up & down arrows 
> > also in the same 3 colors?
> >
> >   Thank you,
> >
> >   vgakkhar
> >
> >
> >
> >
> >
>


Reply via email to