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" <[EMAIL PROTECTED]> To: <[email protected]> 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 > > >
