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

Re: [amibroker] Daily and weekly system



PureBytes Links

Trading Reference Links

Alan

> weeklyma = TimeFrameExpand( weeklyma, inWeekly );

You may be having trouble by using weeklyma for both compressed and expanded 
modes.

Try " weeklyma_exp = TimeFrameExpand( weeklyma, inWeekly ); "

Otherwise it looks fine

----- Original Message ----- 
From: "matrix10014" <allansn@xxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, January 27, 2007 9:19 AM
Subject: [amibroker] Daily and weekly system


> hi all,
> I am attempting to code multiple time frame systems.As an example,i am
> coding a system where you enter long on a daily moving av xover only
> if the close is > than the weekly MA..Does this look right??
>
> Has anyone found multiple time frame analysis useful??
>
> wc = TimeFrameCompress( Close, inWeekly );
> dailyma = MA( C, 14 );
> weeklyma = MA( wc, 14 );
> weeklyma = TimeFrameExpand( weeklyma, inWeekly );
> Buy=Cross(Close,MA(Close,14) AND Close>weeklyma);
> Sell=0;
> positionsize=-2;
>
> Thank you,
>
> Allan
>
>
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
>
>
>


Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.12/653 - Release Date: 1/26/2007 11:11 AM