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

Re: [amibroker] Sorting Arrays ( help )



PureBytes Links

Trading Reference Links

Is there anyone who can help with this......

Anthony Faragasso wrote:

>  I have found this Jscript for sorting in ascending Numeric order...Is
>
> this the proper function...and ....can anyone fill in the blanks.....
>
> periods=9;
> pricechange=ROC(C,periods);
>
> EnableScript("JScript");
>
> <%
> // Sorts records in ascending
> // numeric value order
> function sNumAsc(A, b) {
>     return ((+A > +b) ? 1 : ((+A < +b) ? -1 : 0));
> }
>
> %>
>
> Filter=1;
> AddColumn(pricechange,"%change",1.2);
>
>
> Thank you
> Anthony
>
>
>                    Yahoo! Groups Sponsor
                        ADVERTISEMENT


>
> 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 the Yahoo! Terms of Service.


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/