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

Re: [amibroker] Re: Daily and weekly system



PureBytes Links

Trading Reference Links

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: amibroker@xxxxxxxxxxxxxxx 
  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



   
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/655 - Release Date: 1/28/2007 1:12 PM