[Attachment(s) from portfoliobuilder99@gmail.com [amibroker] included below]
Try something like this,
WeekStart = DayOfWeek() < Ref( DayOfWeek(), -1 );
DaysInWeek = BarsSince( WeekStart )+1;
DaysInPreviousWeek= ValueWhen(DaysInWeek<Ref(DaysInWeek,-1),Ref(DaysInWeek,-1),1);
DIWtwoWeeksAgo= ValueWhen(DaysInWeek<Ref(DaysInWeek,-1),Ref(DaysInWeek,-1),2);
Filter=1;
AddColumn(Close, "Close");
AddColumn(DaysInWeek, "DaysInWeek", 1.0);
AddColumn(DaysInPreviousWeek, "DaysInPreviousWeek", 1.0,colorBlack,colorLightYellow);
AddColumn(DIWtwoWeeksAgo, "DIWtwoWeeksAgo", 1.0,colorBlue,colorLime);
__._,_.___
Attachment(s) from portfoliobuilder99@gmail.com [amibroker] | View attachments on the web
1 of 1 Photo(s)
Posted by: portfoliobuilder99@gmail.com
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (6) |
Upgrade your account with the latest Yahoo Mail app
Get organized with the fast and easy-to-use Yahoo Mail app. Upgrade today!
**** 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/
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/
.
__,_._,___
EmoticonEmoticon