Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 5/8/2010(UTC) Posts: 28 Location: Mumbai (India)
Thanks: 1 times
|
I want to get Closing Price as a horizontal bar, the time factor should be a variable which can be changed from intraday to EOD or Weekly as and when the chart period is changed or required.
Can any one help me in this matter.
|
|
|
|
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
It's unclear what you mean by "horizontal bar". Does it mean a horizintal line across the chart? An indicator with just LastValue(C) would give you a horizontal line right across the chart. If that's not what you mean then you'll need to provide more details.
Roy
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 5/8/2010(UTC) Posts: 28 Location: Mumbai (India)
Thanks: 1 times
|
thanks
Yes my requirement was a horizontal line and your suggestion its some what accurate.
But I want to keep the horizontal line steady which will indicate my previous day's close price in today's intraday chart and that will help to know the intraday trend as well.
|
|
|
|
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)
|
Try this as an indicator for the previous trading day's CLOSE. The correct value won't plot until the first bar of the current day begins to form.
D:=DayOfMonth();
LastValue(ValueWhen(1,DRef(D,-1),Ref(C,-1)));
Roy
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 5/8/2010(UTC) Posts: 28 Location: Mumbai (India)
Thanks: 1 times
|
Hi Roy,
Thks for the msg and for your help.
Your formula is working and I got the trailing close price which now helps me to know the intraday trend and take position accordingly.
I think this formula should be known to others as well so that they can also benefit.
Roy, Can you could help me in coding the Gann indicator as well if possible, I have put up the requirement in this section as "How to code this Gann Indicator" just check it out if you can formulate it.
|
|
|
|
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.