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

Re: [amibroker] Sort by columns



PureBytes Links

Trading Reference Links

In latest version this can be done using OLE

OLE: added ability to control sorting in AA window from OLE level

Object:

Analysis

New method:

SortByColumn( iColumn, bAscending, bMultiMode )

where iColumn - is zero-based column index to sort bybAscending - True/False decides the order we wantbMulti - if set to False - it means that we want to sort by single column OR we define starting column for multi-column sortif set to True - it means that we are defining additional columns for multiple-column sort.So to sort by many columns you need to call SortByColumn once with bMulti set to False AND then call SortByColumn for all remaining sort columns with bMulti set to True .

Example (multiple column sort by column 1 AND 2):

AB = new ActiveXObject("Broker.Application");AA = AB.Analysis;

// sort by date/time column

AA.SortByColumn( 1, False, False );

// add secondary sort column (see last argument = True)

AA.SortByColumn( 2, False, True );

OLE: added Application.Visible property

AB = new ActiveXObject("Broker.Application");

AB.Visible = True;

WScript.Sleep(1000);

AB.Visible = False;

WScript.Sleep(1000);

AB.Visible = True;

WScript.Sleep(1000);

AB.Quit();

--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm

 
On 4/19/06, Tony Lei <yiupang91@xxxxxxxxx> wrote:
One request is to make AA remember the "sort" sequence whenever scan/explore auto runs.

I don't think this is possible yet. Is this correct?

Tony

On 4/16/06, cstrader232 <cstrader232@xxxxxxxxxxxx > wrote:

----- Original Message -----
From: "Terry" <MagicTH@xxxxxxxxxxx >
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, March 25, 2006 8:37 PM
Subject: RE: [amibroker] Sort by columns


> It works fine for me. Be sure your first sort "allows" a 2nd sort.
> E.G., if you sort on % Profit first, then a 2nd sort will not change
> anything since each % Profit is likely unique.
> --
> Terry
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto: amibroker@xxxxxxxxxxxxxxx] On
> Behalf Of areehoi
> Sent: Saturday, March 25, 2006 16:43
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Sort by columns
>
> Hi all,
> The new feature in 4.78 permits sorting of the AA columns (mutiple
> column sort) but I can't seem to get it to sort as explained in the
> "read me" doc. According to the doc you sort the first column then
> hold down the SHIFT to sort additional columns (keeping it held down
> and clicking with do ascending/decending .. according to doc).  It
> just doesn't work for me.  Anyone else having this problem? Or do I
> need to do something else?? Thanks for any help as this is an
> excellent feature if it works.
>
> Dick H.
>
>
>
>
>
>
>
>
>
> 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
>
>
>
>
>
>
>


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





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


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





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS