Thanks Mike, Will work on changing Year() to week???
In fact when I change the one line as below I get something that may work!! newYear = DayOfWeek()==2;//Year() != Ref(Year(), -1); JG -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mike Sent: Wednesday, December 23, 2009 11:10 AM To: [email protected] Subject: [amibroker] Re: Winter project, Correlation Trading Jerry, I was involved in a similar thread recently, excecpt covering 1 year at a time. Perhaps you can alter the code for your needs. http://finance.groups.yahoo.com/group/amibroker/message/144969 Mike --- In [email protected], "Jerry Gress" <pleasenospample...@...> wrote: > > Hello All, > > Would like to take the 1 minute data from three weeks ago and two weeks ago > then super impose it on the following week. For example: Monday 7 Dec, > Monday 14 all on Monday Dec 21. > > > My feeble attempt that does not work for one week: > > yut = DayOfWeek()==2; > ytr = Ref(yut,-1); > Plot(ytr,"",colorGreen,styleBar); > > > So do I have to do the timeframe stuff? > > Any help will be appreciated. > > JG > ------------------------------------ **** IMPORTANT PLEASE READ **** This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links
