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

Re: [amibroker] date



PureBytes Links

Trading Reference Links

you are missing a zero for the year in datenum

1st Feb 2000 is 1000201
1st Feb 1999 is 990201

2/3 digits for year, 2 for month and 2 for day


On Sun, 21 Nov 2004 17:14:03 -0500, Dominick <dom2000@xxxxxxxxxxx> wrote:
> 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 
> To: amibroker@xxxxxxxxxxxxxxx 
> 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
> 
> 
> ________________________________
> 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. 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

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:
    http://docs.yahoo.com/info/terms/