Eric, point is that if you are in the Daily timeframe you want the MA14_Weekly array to be expanded to the daily timeframe.
This is why I added in the second Email: Buy=Cross(Close,TimeFrameExpand( MA14_Daily, inDaily )) AND Close > TimeFrameExpand( MA14_Weekly, inWeekly ); Here you see I also expand the MA14_Daily. If you are inside the daily timeframe it will not change your array. However if you are in the hourly timeframe both the MA14_Weekly and the MA14_Daily will be expanded to the hourly timeframe, rgds, Ed ----- Original Message ----- From: eric tao To: [email protected] Sent: Monday, January 29, 2007 5:23 AM Subject: [amibroker] Re: Daily and weekly system > Buy=Cross(Close,MA14_Daily) AND Close > TimeFrameExpand(MA14_Weekly, inWeekly ) why do we need to use timeframeexpand()? Does ma14_weekly already have weekly data? Thank you
