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

Notification

Icon
Error

Options
Go to last post Go to first unread
kthakker0  
#1 Posted : Thursday, December 29, 2011 12:38:20 PM(UTC)
kthakker0

Rank: Member

Groups: Registered, Registered Users, Unverified Users
Joined: 5/8/2010(UTC)
Posts: 28
Location: Mumbai (India)

Thanks: 1 times
Hi, I would like to have the Open Price as a horizontal line on the intra day chart. Can any one help to build an indicator for the same?
mstt  
#2 Posted : Thursday, December 29, 2011 3:31:41 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

Try this.

D:=DayOfMonth();
ValueWhen(1,D<>Ref(D,-1),O);

If you want the most recent open to plot across the entire chart then enclose the last line in LastValue() as below.

D:=DayOfMonth();
LastValue(ValueWhen(1,D<>Ref(D,-1),O));

Roy
kthakker0  
#3 Posted : Thursday, December 29, 2011 10:50:23 PM(UTC)
kthakker0

Rank: Member

Groups: Registered, Registered Users, Unverified Users
Joined: 5/8/2010(UTC)
Posts: 28
Location: Mumbai (India)

Thanks: 1 times
Hi Roy Thank you. Both are workable and have their different virtues and both You are a virtual Gem for people like us who cannot code even two lines.
Users browsing this topic
Guest (Hidden)
Similar Topics
Miscellaneous: How do I correct wrong opening prices with real-time data? (MetaStock FAQ)
by StorkBite 7/31/2006 11:28:15 PM(UTC)
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.