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?
|
|
|
|
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
|
|
|
|
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)
|
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.