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

[amibroker] Daily and weekly system



PureBytes Links

Trading Reference Links

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


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