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

[amibroker] Re: Conditional Title Color ?



PureBytes Links

Trading Reference Links

Thanks Leo, that did the trick.

--- In amibroker@xxxxxxxxxxxxxxx, "leo_amelc" 
<leo.timmermans.lt@xxxx> wrote:
> Fred, 
> 
> Use WriteIf and/or WriteVal. See example. I use this to turn green 
> positive changes and red negative changes.
> 
> Kind regards
> Leo
> 
> 
> Chg=100*(C/Ref(C,-1)-1);
> 
> waarde=WriteIf(Chg>=0,EncodeColor(colorGreen)+"(+",EncodeColor
> (colorRed)+"(")+WriteVal(Chg,2.1)+" %)";
> 
> Title=Name()+" daily "+Date()+EncodeColor(colorYellow)+" - KELTNER 
> CHANNEL"+EncodeColor(colorBlack)+ " - Open "+WriteVal(O,4.2)+", 
> High "+WriteVal(H,4.2)+", Low "+WriteVal(L,4.2)+",Close "+WriteVal
> (C,4.2)+"  "+waarde;
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Fred" <fctonetti@xxxx> wrote:
> > Does anyone know if and how one can conditionally change title 
> color 
> > based on the value in an array ?
> > 
> > For example:
> > 
> > Title = ... + iif(PosNeg > 0, EncodeColor(colorgreen), EncodeColor
> > (colorored)) + ...
> > 
> > doesn't work ...
> > 
> > Title = ... + EncodeColor(iif(PosNeg > 0, colorgreen, colorred)) 
> + ...
> > 
> > also appears not to work ...
> > 
> > Anyone know what does work or if this is possible ?


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get a FREE REFINANCE QUOTE - click here!
http://us.click.yahoo.com/2CXtTB/ca0FAA/i5gGAA/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/