|monday = DayOfWeek()==1;
since = DateNum() >= 091101; // November 1, 2009
absoluteChange = abs( ROC( *C*, 1 ) );
Change = 0;
Count = 0;
*for* ( i = 0; i < *BarCount*; i++ )
{
*if* (since[i] && monday[i])
    {
            Change = Change + absoluteChange[i];
            Count ++ ;

    }
}

MondayAVChange = Change/Count;|


On 1/5/2010 7:14 AM, peter wrote:


Can anyone help me?

thanks

On Mon, Jan 4, 2010 at 3:49 PM, peter <[email protected] <mailto:[email protected]>> wrote:

    Hi,

    I want to get average of one day of week average return during
    past several months. For example, I want to know Monday price
    average since three months ago. Does anyone know how to calculate
    it using afl?

    thank you!







Reply via email to