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

RE: [amibroker] Re: AmiBroker 4.60.1 BETA -Relative Performance Chart



PureBytes Links

Trading Reference Links

Hi Antonio,

Mission accomplished.  Thanks.  It now looks like this (I will show
percentage move for all issues, and 'pchng' is defined as a variable
that gives it) . . .

Title = EncodeColor(colorWhite)+ "Px.
[Built-in]"+EncodeColor(colorBlack)+"   "+Name() +"  on  "+ WriteVal(
DateTime(), formatDateTime )+"   "+EncodeColor(colorYellow)+"O
"+EncodeColor(colorBlack)+WriteVal(O,x)+"
"+EncodeColor(colorYellow)+"   H
"+EncodeColor(colorBlack)+WriteVal(H,x)+"
"+EncodeColor(colorYellow)+"   L
"+EncodeColor(colorBlack)+WriteVal(L,x)+"
"+EncodeColor(colorYellow)+"   C
"+EncodeColor(colorBlack)+WriteVal(C,x)+WriteIf(pchng >= 0,
EncodeColor(colorDarkGreen)+"   +"+WriteVal(pchng,1.2)+"%",
EncodeColor(colorRed)+"
"+WriteVal(pchng,1.2)+"%")+EncodeColor(colorDarkRed)+"   Vol =
"+EncodeColor(colorBlack)+WriteVal(V,1)+EncodeColor(colorDarkGreen)+WriteIf(Name()=="^IXJ"
OR Name()=="^225","   (+3 zeros for Index Vol)","");

Yuki

Thursday, July 29, 2004, 7:28:42 PM, you wrote:

AM> Yuki,

AM> to choose a colour if a given condition is true, in title You can use
AM> WriteIf() function (commentary conditional text output).
AM> Here is an example:


AM> //--------------------------------------------------------------------------
AM> Plot(C,"Close",ColorBlack,styleCandle);
AM> PlotForeign("^NDX","ND100",colorRed,styleCandle|styleOwnScale);

AM> Index_C = Foreign("^NDX","C",1);
AM> Index_var = (Index_C - Ref(Index_C,-1))/Ref(Index_C,-1)*100;

AM> // Titolo del grafico
AM> Title = Name()+" - "
AM>               +WriteIf(Interval()==86400,"Daily ","")+Date()+" :"
AM>               +" Op "+WriteVal(O,1.4)
AM>               +", Hi "+WriteVal(H,1.4)
AM>               +", Lo "+WriteVal(L,1.4)
AM>               +", Cl "+WriteVal(C,1.4)
AM>               +", ("+WriteVal(( ((C-Ref(C,-1))*100) /Ref(C,-1)),1.2)+" %)"
AM>               +" - Vol "+WriteVal(V,1.0)
AM>               +" - ^NDX %var :
AM> "+WriteIf(Index_var>0,"\\c27","\\c32")+WriteVal(Index_var,1.2)+"\\c16 %";

AM> //--------------------------------------------------------------------------

AM> Best Regards,
AM> 	Antonio

AM> -----Original Message-----
AM> From: Yuki Taga [mailto:yukitaga@xxxxxxxxxxxxx] 
AM> Sent: Thursday, July 29, 2004 9:09 AM
AM> To: amibroker@xxxxxxxxxxxxxxx
AM> Subject: [amibroker] Need some Title help

AM> I would like to modify the following title in my built-in Px chart:

AM> Title = EncodeColor(colorWhite)+ "Px.
AM> [Built-in]"+EncodeColor(colorBlack)+"   "+Name() +"  on  "+ WriteVal(
AM> DateTime(), formatDateTime )+"   "+EncodeColor(colorYellow)+"O
AM> "+EncodeColor(colorBlack)+WriteVal(O,x)+"
AM> "+EncodeColor(colorYellow)+"   H
AM> "+EncodeColor(colorBlack)+WriteVal(H,x)+"
AM> "+EncodeColor(colorYellow)+"   L
AM> "+EncodeColor(colorBlack)+WriteVal(L,x)+"
AM> "+EncodeColor(colorYellow)+"   C
AM> "+EncodeColor(colorBlack)+WriteVal(C,x)+EncodeColor(colorDarkRed)+"
AM> Vol =
AM> "+EncodeColor(colorBlack)+WriteVal(V,1)+EncodeColor(colorDarkGreen)+WriteIf(
AM> Name()=="^IXJ"
AM> OR Name()=="^225","   (+3 zeros for Index Vol)","");





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