logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
hong  
#1 Posted : Saturday, October 27, 2012 12:49:05 AM(UTC)
hong

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 10/27/2012(UTC)
Posts: 1
Location: MALAYSIA

does anyone notice that :- DayOfWeek()=1 (this Monday) DayOfWeek()=2 (this Tuesday) DayOfWeek()=3 (this Wednesday) DayOfWeek()=4 (this thursday) DayOfWeek()=5 (Last Friday) ??? I want to plot "1" on the chart(friday) when this Friday's high > this Tuesday's high ,anyone able to make this happens ??? Thanks !
mstt  
#2 Posted : Saturday, October 27, 2012 5:10:15 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)

Hi hong

DayOfWeek()=5 will plot a TRUE result for every Friday in a chart. If your code specifies the most recent Friday and there is no Friday data for the current week, then of course the most recent Friday will be the one for the previous week. There is no problem with MetaStock here, but very likely the code you have created is doing something different from what you intended.

Roy
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.