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

[amibroker] can AFL really do *anything*?



PureBytes Links

Trading Reference Links

I have shamelessly poached, and modified to suit, some code from the
AB site originally written by Thomas Zmuch.  Very nice code, sir.
This shows from any beginning point the relative performance of a
group of foreign symbols versus the currently selected symbol.

It now produces the chart attached, and I'd like to know if it's
possible to incorporate one other little trick here.

All the on-chart text is produced via the title statement below.  And
as I plan on adding a bunch of extra industry groups to this chart, I
want to run them all down the left side, as opposed to across the
top, as Thomas had originally set it up.  No problem there of course.

But can AFL do this: Can AFL order the industry group indices written
on the left side of the chart via the title statement according to
their values (as happens automatically in the right margin with the
values themselves)?  That would be one heck of a neat thing if I
could do that.

Yuki

Title statement section from chart: (chart attached, and as you can
see, we've been having a bit of a party over here in the past 8 weeks
or so -- these are not even the best performers you see on the chart,
others are in the 60 percentile range)

Title= "TSE Industry Performance Overview: Smooth-Factor: "+WriteVal(pds,1.0)+"\n"
+EncodeColor(colorBlue)+"Electrical Appliances "+EncodeColor(colorBlack)+WriteVal(Perf_T1,1.2)+" %"+"\n"
+EncodeColor(colorDarkGreen)+"Banks "+EncodeColor(colorBlack)+WriteVal(Perf_T2,1.2)+" %  "+"\n"
+EncodeColor(colorBlack)+"Real Estate "+WriteVal(Perf_T3,1.2)+" % "+"\n"
+EncodeColor(colorYellow)+"Securities "+EncodeColor(colorBlack)+WriteVal(Perf_T4,1.2)+" %"+"\n"
+EncodeColor(colorGold)+"Marine Trans "+EncodeColor(colorBlack)+WriteVal(Perf_T5,1.2)+" %"+"\n"
+EncodeColor(colorRed)+FullName()+" "+EncodeColor(colorBlack)+WriteVal(Perf_T6,1.2)+" %";


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

Attachment: Snap1.png
Description: PNG image