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

Re: [amibroker] Re: Timed frame



PureBytes Links

Trading Reference Links

Hello,

Yes there is a way to do this. The following formula
gives a "1" on first trading day of the week (no matter if it
is Mon, Tue, Wed...)

weekbeg = dayofweek() < ref( dayofweek(), -1 );

nice, isn't it?

Best regards,
Tomasz Janeczko
amibroker.com

----- Original Message -----
From: "Stephane Carrasset" <nenapacwanfr@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: 07 September, 2001 10:44
Subject: [amibroker] Re: Timed frame


Tz or all,

is there a way to generate "1" for weekly bars ( monday to friday)
these timed frame bars must be stable when new data are added

SC



In amibroker@xxxx, "Stephane Carrasset" <nenapacwanfr@xxxx> wrote:
> Tz,
>
> You wrote
> <<
> Hi Dimitris, For example if you want to generate a "1" every 8th
bar
> you can now write impulse8 = ( cum(1) % 8 ) == 0; This is useful
when
> you try to simulate different periodicity from daily data: close8 =
> ValueWhen( impulse8, close ); high8 = HighestSince( impulse8,
high );
> low8 = LowestSince( impulse8, low ); Best regards, Tomasz Janeczko
> >>
>
>
> but the 8time frame bars ( or another lenght of time frame) are
> calculated from the last data isn't it ?
> and change when new data are added
> so it can't be use in backtest
>
> right or wrong ? ?





Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/