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

Re: [amibroker] Sort the Array


  • To: <amibroker@xxxxxxxxxxxxxxx>
  • Subject: Re: [amibroker] Sort the Array
  • From: "Franco Fornari" <ffpsi@xxxxxx>
  • Date: Thu, 6 Feb 2003 23:10:48 -0800
  • In-reply-to: <3E4310BF.5EBA5E8F@epix.net>

PureBytes Links

Trading Reference Links

Anthony,

few days ago Tomasz suggested me to try a method described here:

http://www.amibroker.com/members/traders/01-2003.html

as far as I know, sorting is possible in JScript only, not in VBScript.
Furthermore, as you will see, in JScript you can define the sorting order
only if you use a formula as argument (Sort(argument)). If you run Sort()
function without any argument, your array will be sorted in ascending,
ASCII character order.

Best regards,

Franco

----- Original Message -----
From: "Anthony Faragasso" <ajf1111@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, February 07, 2003 2:49 AM
Subject: [amibroker] Sort the Array


> Can anyone fill this in....I want to sort the array ( pricechange )...so
> the output will be in ascending order...
>
> I know I could just click on the column heading after the results are
> in......but that is not what I wish at this time.
>
> Thank you in advance.....it could be in Jscript or VBscript...
>
>
> periods=9;
> pricechange=ROC(Close,periods);
>
> EnableScript("JScript");
>
> <%
>
> // sort the array
>
> %>
> Filter=1;
> AddColumn(pricechange,"% Change");
>
> Anthony
>
>
>
>
>
>
> 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/
>
>



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/