This should do the trick.

FirstTwoDaysofMonth = barssince(Month() != ref(Month(),-1)) < 2;

On 18/01/07, Mr. Valley <[EMAIL PROTECTED]> wrote:

   How would you write "the first Two days of the month"?
Thanks


-----Original Message-----
*From:* [email protected] [mailto:[EMAIL PROTECTED]
Behalf Of *Mark Jarvis
*Sent:* Wednesday, January 17, 2007 5:01 AM
*To:* [email protected]
*Subject:* Re: [amibroker] First day of the month

 Try this.

Firstdayofmonth = month() != Ref(Month(),-1);

Mark

On 16/01/07, intradayscalper <[EMAIL PROTECTED] > wrote:
>
>   How can I program to find the first trading day of each month in
> amibroker? Please help
>
> thanks
>
>

Reply via email to