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

Re: [amibroker] date



PureBytes Links

Trading Reference Links

Thanks Anthony and Schmidt:
 
It appears you just subtracted the (2004-1900) and got 104, then inserted the month and year.
But here's what this code challanged guy  interprets from DATENUM in the user's guide:
10000 * (year - 1900) + 100 * month + day, so 2001-12-31 becomes 1011231 and 1995-12-31 becomes 951231
10000*(2001-1900)= 104000
100*12                   =      1200  multiplication has precedence over addition
+ day                                   31
                             total = 105231  Well we know that's not right.

Let's try:     104000
                  123100 for 100 * month + day
       total =  227100  

Ok I give up  I'll ask the board.

dom
Anthony Faragasso wrote:
Dom,
 
Something like this:
 

x=DateNum()==1040503 AND C == 17;

Buy=x;//arrow placed on day

Filter = x >0;

AddColumn(C,"test",1.2);

 

Settings:

all stocks

all quotations

 

Anthony

----- Original Message -----
From: Dominick
Sent: Sunday, November 21, 2004 2:51 PM
Subject: Re: [amibroker] date


I forgot to include what I have:

x=(Month()= = 5) and (day()= =1) and C= =17;
filter = x;
addcolumn(x,"Monday",1.2);


I'm having a little trouble writing an exploration that would find all
stocks that closed on a particular date at a particular price.
For ex. 

Find all stocks that closed at 17 on May 3rd.

Some ideas would be appreciated.

TIA,

dom





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links