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

RE: [amibroker] Fixed Buy Dates



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Linda,
you 
could try using the Datenum() function to set your buy date. From 
help....
<FONT face=Arial color=#0000ff 
size=2> 


  
  
    
      DATENUM- date number
    
      Date/Time(AFL 1.4)

  
  
    SYNTAX 
    datenum() 
  
    RETURNS
    ARRAY 
  
    FUNCTION 
    Returns the array with numbers that represent quotation 
      dates coded as follows: 10000 * (year - 1900) + 100 * month + day, so 
      2001-12-31 becomes 1011231 and 1995-12-31 becomes 951231 
  
    EXAMPLE
    datenum(); 
<FONT face=Arial color=#0000ff 
size=2> 
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: wilmarthl 
[mailto:smart@xxxxxxxxxx]Sent: Tuesday, September 09, 2003 8:50 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Fixed 
Buy DatesI want to test a trading strategy in which I 
already know the Buy Dates of the various stocks I will be trading, and just 
want to optimize the sell strategy. For example, I may already know 
that I want to buy A on 8/1/03 and buy X on 8/15/03.  Then I will write 
code for my sell strategy, as usual.Is there a way to fix the buy 
dates for each stock in a group?LindaSend 
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 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


ADVERTISEMENT









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