Bovespa Calendar Fix

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Bovespa Calendar Fix

Piter Dias-2
Luigi,

I was checking the new Bovespa calendar and realized that the following piece
of code

            // Black Consciousness Day
            || (d == 20 && m == November && y >= 2004)

should be changed to

            // Black Consciousness Day
            || (d == 20 && m == November && y >= 2007)

because 2004 is just for Rio de Janeiro. In São Paulo (where Bovespa is) the
holiday was created this year.

There is a extra one but need to think the better way to do. The last
business day of the year is not a Bovespa business day. That is an exchange
rule.
I realize that when I had a similar problem where I work.

I let you when it is ready to put, at least, in trunk.

Regards,

Piter Dias
[hidden email]



-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: Bovespa Calendar Fix

Luigi Ballabio
On Tue, 2007-12-04 at 22:57 -0200, Piter Dias wrote:

> I was checking the new Bovespa calendar and realized that the following piece
> of code
>
>             // Black Consciousness Day
>             || (d == 20 && m == November && y >= 2004)
>
> should be changed to
>
>             // Black Consciousness Day
>             || (d == 20 && m == November && y >= 2007)

Ok, I'll fix it.


> There is a extra one but need to think the better way to do. The last
> business day of the year is not a Bovespa business day. That is an exchange
> rule.
> I realize that when I had a similar problem where I work.

This would probably translate to "if it's December 31st, or Friday
December 30th, or Friday December 29th". Does it sound correct?

Luigi


--

When I was a boy of fourteen, my father was so ignorant I could hardly
stand to have the old man around. But when I got to be twenty-one, I
was astonished at how much the old man had learned in seven years.
-- Mark Twain



-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: Bovespa Calendar Fix

Luigi Ballabio
In reply to this post by Piter Dias-2
Piter,
        it's fixed now. Thanks for the heads-up.

Luigi



--

The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" but "That's funny..."
-- Isaac Asimov



-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev