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

[amibroker] Re: Trailing stops



PureBytes Links

Trading Reference Links

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/) -------------------------------------------- Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html Yahoo! Groups Sponsor ADVERTISEMENT Click Here 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 the Yahoo! Terms of Service.