PureBytes Links
Trading Reference Links
|
I don't believe AB has a clue re calendar vs. trading days; you need the difference in Julian days.
If you don't want to use a JDay dll and only need to know, for example, when the .75% Fido commission expires, consider a 30 days
has Sept.... lookup.
Bob
-----Original Message-----
From: Ken Close [mailto:closeks@xxxxxxxx]
Sent: Tuesday, April 29, 2003 1:10 PM
To: AmiBroker List
Subject: [amibroker] Calendar Dates vs Trading Dates
Help....I want to count the number of calendar days since a buy or
short...
I have read msg # 16104 about creating a For loop inside a Jscript, but
frankly can not understand what it is advising.
Can someone show me a simple way to determine the number of calendar
days that have elapsed? Maybe the new For loop can help?
I want to code in a "close trade" flag if there are more than x number
of calendar days since the trade was initiated. Because of other
aspects of the code, I do not want to (can not) use the dll time stop
that is in the files area.
Any help would really be appreciated.
Ken
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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/O10svD/Me7FAA/AG3JAA/GHeqlB/TM
---------------------------------------------------------------------~->
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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|