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

[amibroker] Eliminating empty symbols



PureBytes Links

Trading Reference Links


<http://groups.yahoo.com/group/amibroker/message/49504>Message 49504 - 
amibroker YahooGroup

From: 
<mk:@MSITStore:E:\Folio.sentinal\AmiBroker%20help\ForumPosts\AmiBroker03D.chm::/ymsgr:sendIM?amibroker>
13d6cb6.jpg
 "Tomasz Janeczko" 
<<mk:@MSITStore:E:\Folio.sentinal\AmiBroker%20help\ForumPosts\AmiBroker03D.chm:://group/amibroker/post?postID=2B_UrvrLdsgQCq3rmID2mqrxosrQ1hIUed_FbGY8ncBPJwM6OQlNlZpbf9qmVTD42w1uRjN375Bi6vg>amibroker@xxxxxx> 

Date:  Fri Oct 10, 2003  3:48 pm
Subject:  Re: [amibroker] sublimely naive? Manual Stock Sorting.

Michael,

For the same reason: there are NO arrays of strings in AFL. All string 
functions / arithmetic
give you SINGLE string (not array of strings).

To achieve what you want you would need to use NUMERIC column:

AddColumn( Status("stocknum") * 1000 + BarIndex(), "sortcol" );

Best regards,
Tomasz Janeczko
amibroker.com



At 02:33 PM 21/02/2004, you wrote:
>You could try using Osaka plugin for your sorting
>
>Cheers,
>Graham
><http://e-wire.net.au/~eb_kavan/>http://e-wire.net.au/~eb_kavan/
>-----Original Message-----
>From: Herman van den Bergen [mailto:psytek@xxxxxxxx]
>Sent: Saturday, 21 February 2004 10:50 AM
>To: amibroker@xxxxxxxxxxxxxxx
>Subject: RE: [amibroker] Can anyone help me Sort this out....
>
>You could convert DateNum() to a DateIndex which will be a much smaller 
>number. You would have to pick a first date for zero, your reference, or 
>count backwards from today... depend on your application.
>
>The DateIndex would simply be the number of bars before a given point. For 
>10 years you should have a maximum count of about 10*250=2500 which is 
>much smaller than you datenum.
>
>Interesting problem,
>good luck,
>herman.
>-----Original Message-----
>From: Michael.S.G. [mailto:OzFalcon@xxxxxxxx]
>Sent: Friday, February 20, 2004 8:45 PM
>To: amibroker@xxxxxxxxxxxxxxx
>Subject: [amibroker] Can anyone help me Sort this out....
>
>Has anyone yet got around the DateNum() / 32 bit float limitation yet?
>
>This is a real Turd of a problem - And I'd like to know if there are any 
>workarounds/solutions?
>
>For me - I wish to Transform DateNum() to a Ranking system I can sort 
>under AA.
>
>But two limitations are stoping me.
>1) The use of Strings in AB appears to be as single variables. (Not Arrays).
>2) Transforming the value from DateNum creates a number greater than 7 
>significant digits. Inducing the 32bit Float limitation.
>
>For those unaware of the above constrictions, Here is a sample AFL to show 
>you.
>
>// Combined Sort for AA.
>//
>// Filter = "Curent Stock"
>//
>// Range  = "All Quotes"
>
>// Create a Date/Rank to Sort with.
>//
>// Doesn't work (Strings can not be arrays?)
>SortStr  = "" + Year() + "/" + Month() + "/" + Day() + ":" + Close;
>//
>// Doesn't work (Larger than 7 digits - 32bit Float)
>SortVar = (DateNum()*100) + Close;
>
>
>AddColumn(Close,"Close",1.2);
>AddTextColumn(SortStr,"SortStr",1.2);
>AddColumn(SortVar,"SortVar",1.2);
>
>//Filter
>Filter = 1;
>
>
>Send BUG REPORTS to bugs@xxxxxxxxxxxxx
>Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
>-----------------------------------------
>Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
>(Web page: 
><http://groups.yahoo.com/group/amiquote/messages/)>http://groups.yahoo.com/group/amiquote/messages/)
>--------------------------------------------
>Check group FAQ at: 
><http://groups.yahoo.com/group/amibroker/files/groupfaq.html>http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
>
>
>
>
>
>Send BUG REPORTS to bugs@xxxxxxxxxxxxx
>Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
>-----------------------------------------
>Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
>(Web page: 
><http://groups.yahoo.com/group/amiquote/messages/)>http://groups.yahoo.com/group/amiquote/messages/)
>--------------------------------------------
>Check group FAQ at: 
><http://groups.yahoo.com/group/amibroker/files/groupfaq.html>http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
>
>
>
>
>
>Send BUG REPORTS to bugs@xxxxxxxxxxxxx
>Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
>-----------------------------------------
>Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
>(Web page: 
><http://groups.yahoo.com/group/amiquote/messages/)>http://groups.yahoo.com/group/amiquote/messages/)
>--------------------------------------------
>Check group FAQ at: 
><http://groups.yahoo.com/group/amibroker/files/groupfaq.html>http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
>
>
>
>Yahoo! Groups Sponsor
>ADVERTISEMENT
><http://rd.yahoo.com/SIG=12cth821e/M=274551.4550177.5761904.1261774/D=egroupweb/S=1705632198:HM/EXP=1077420795/A=2019528/R=2/*http://ad.doubleclick.net/jump/N3349.yahoo1/B1282054.27;abr=!ie4;abr=!ie5;sz=300x250;code=18634;dcopt=rcl;ord=1077334395042860?>
>Click Here
><http://rd.yahoo.com/SIG=12cth821e/M=274551.4550177.5761904.1261774/D=egroupweb/S=1705632198:HM/EXP=1077420795/A=2019528/R=2/*http://ad.doubleclick.net/jump/N3349.yahoo1/B1282054.27;abr=!ie4;abr=!ie5;sz=300x250;code=18634;dcopt=rcl;ord=1077334395042860?>Click 
>Here
>[]
>
>
>
>----------
>Yahoo! Groups Links
>    * To visit your group on the web, go to:
>    * 
> <http://groups.yahoo.com/group/amibroker/>http://groups.yahoo.com/group/amibroker/ 
>
>    *
>    * To unsubscribe from this group, send an email to:
>    * 
> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>amibroker-unsubscribe@xxxxxxxxxxxxxxx 
>
>    *
>    * Your use of Yahoo! Groups is subject to the 
> <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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 
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: Description: ""