PureBytes Links
Trading Reference Links
|
Hello NEW,
You write: "can someone pass along a formula for
either...etc."
What would you like to do....what type of formula
?
Anyway, in the files section of the yahoo group for
amibroker there are some system formulas....
<A
href="">http://groups.yahoo.com/group/amibroker/files/<A
href=""><FONT
face="Times New Roman">Optimized Systems.zip<FONT
face="Times New Roman">
Anthony
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
<A title=learningamibroker@xxxxxxxxx
href="">new amibroker
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Friday, February 20, 2004 10:02
PM
Subject: RE: [amibroker] Can anyone help
me Sort this out....
I am new to AmiBroker and need some help with
formulas. Can someone pass along a formula for eitherRydex
Funds or End of Day Stock TradesThank YouHerman
van den Bergen <<A
href="">psytek@xxxxxxxx> wrote:
<BLOCKQUOTE class=replbq
>
<SPAN
class=937203802-21022004>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.
<SPAN
class=937203802-21022004>
<SPAN
class=937203802-21022004>The DateIndex would simply be the number of bars
before a given point. <FONT face=Arial color=#0000ff
size=2>For 10 years you should have a maximum
count of about 10*250=2500 which is much smaller than you datenum.
<SPAN
class=937203802-21022004>
<SPAN
class=937203802-21022004>Interesting problem,
<SPAN
class=937203802-21022004>good luck,
<SPAN
class=937203802-21022004>herman.
<FONT face=Tahoma
size=2>-----Original Message-----From: Michael.S.G.
[mailto:OzFalcon@xxxxxxxx]Sent: Friday, February 20, 2004 8:45
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [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.<FONT face="Courier New, Courier"
color=#008 000>// 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 =
""<FONT
face="Courier New, Courier"> + <FONT face="Courier New, Courier"
color=#0000ff>Year() +
"/"<FONT
face="Courier New, Courier"> + <FONT face="Courier New, Courier"
color=#0000ff>Month() +
"/"<FONT
face="Courier New, Courier"> + <FONT face="Courier New, Courier"
color=#0000ff>Day() +
":"<FONT
face="Courier New, Courier"> + Close;<FONT
face="Courier New, Courier" color=#008000>//// Doesn't work (Larger
than 7 digits - 32bit Float)<FONT
face="Courier New, Courier">SortVar = (<FONT
face="Courier New, Courier" color=#0000ff>DateNum<FONT
face="Courier New, Courier">()*<FONT face="Courier New, Courier"
color=#ff00ff>100) +
Close;<FONT face="Courier New, Courier"
color=#0000ff>AddColumn<FONT
face="Courier New, Courier">(Close,<FONT
face="Courier New, Courier" color=#ff00ff>"Close"<FONT
face="Courier New, Courier">,<FONT face="Courier New, Courier"
color=#ff00ff>1.2<FONT
face="Courier New, Courier">);<FONT face="Courier New, Courier"
color=#0000ff>AddTextColumn<FONT
face="Courier New, Courier">(SortStr,<FONT
face="Courier New, Courier" color=#ff00ff>"SortStr"<FONT
face="Courier New, Courier">,<FONT face="Courier New, Courier"
color=#ff00ff>1.2<FONT
face="Courier New, Courier">);<FONT face="Courier New, Courier"
color=#0000ff>AddColumn<FONT
face="Courier New, Courier">(SortVar,<FONT
face="Courier New, Courier" color=#ff00ff>"SortVar"<FONT
face="Courier New, Courier">,<FONT face="Courier New, Courier"
color=#ff00ff>1.2<FONT
face="Courier New, Courier">);<FONT
face="Courier New, Courier" color=#008000>//Filter<FONT
face="Courier New, Courier">Filter = <FONT
face="Courier New, Courier" color=#ff00ff>1<FONT
face="Courier New, Courier">;Send BUG REPORTS to
bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page:
<A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend
SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page:
<A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Do you Yahoo!?<A
href="">Yahoo!
Mail SpamGuard - Read only the mail you want. Send BUG
REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">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/)
--------------------------------------------
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 the Yahoo! Terms of Service.
|