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 : Tuesday, April 2, 2013 3:06:26 AM(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 want to draw Intraday Vertical Lines between 4 successive days.

Here only the first day needs to be of my choice

The Indicator should plot Vertical Lines with a gap of 4 days on Intraday basis

Please help me plot it

Thanks in advance





John S  
#2 Posted : Tuesday, April 2, 2013 10:00:38 AM(UTC)
John S

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/9/2012(UTC)
Posts: 169

Are you wanting to do this in order to incorporate it this into a formula or system OR is it strictly for visual inspection?
kthakker0  
#3 Posted : Wednesday, April 3, 2013 4:55:19 AM(UTC)
kthakker0

Rank: Member

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

Thanks: 1 times

Its only for visual inspection which will be used to trade intraday keeping a time frame of 4 trading days and its not to be incorporated in any system or formula

I got this code which plots vertical lines as per the number of bar specified.
Mod(Cum(1),8)=0

The problem with this code is, vertical lines are plotted on the chart as per number of bars specified from the start date of the chart.

I want to plot the vertical lines between my 4 trading days time frame, here the counting should start from 1st bar of the 1st day and plot the vertical lines between the 4th day.

Thanks in advance



John S  
#4 Posted : Wednesday, April 3, 2013 9:18:09 AM(UTC)
John S

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/9/2012(UTC)
Posts: 169

Ok. I was going to suggest using the built-in Cycle Line tool; however I see that your goal is to specify a range so this will not be any better.

I believe there may be a clever way of using the date/time functions in the formula language in combination with your formula mentioned above. Someone on this forum will likely pipe up and speak to this. I will also alert our in-house formula expert, Will Golson.

--john
kthakker0  
#5 Posted : Thursday, April 4, 2013 2:38:32 AM(UTC)
kthakker0

Rank: Member

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

Thanks: 1 times
Hi,

Thanks for your reply and the efforts you are taking to solve my issue.

I hope that my requirements get resolved soon.

Bye
John S  
#6 Posted : Thursday, April 4, 2013 9:46:14 AM(UTC)
John S

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/9/2012(UTC)
Posts: 169

If you don't hear from someone within the next week, private message me.

Thanks.
MS Support  
#7 Posted : Friday, April 12, 2013 5:45:24 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,929

Thanks: 85 times
Was thanked: 154 time(s) in 150 post(s)

Kshetij,

If you send an email to formulas@metastock.com you should be able to get an answer on that. The person who responds to that email should be able to figure that out for you. Just be aware there may possibly be a $30 charge for that because of the fact of it being on an intraday chart will make it a bit harder.

Thanks,

Lucian
MetaStock Support

kkrishna79  
#8 Posted : Tuesday, January 19, 2021 3:11:57 PM(UTC)
kkrishna79

Rank: Member

Groups: Registered, Registered Users, Unverified Users
Joined: 1/31/2009(UTC)
Posts: 16
Location: Mumbai

Thanks: 2 times
Originally Posted by: kthakker0 Go to Quoted Post
Hi,
I want to draw Intraday Vertical Lines between 4 successive days.
Here only the first day needs to be of my choice
The Indicator should plot Vertical Lines with a gap of 4 days on Intraday basis
Please help me plot it
Thanks in advance

Day1:= Input("Day",1,31,1); Month1:= Input("Month",1,12,12); Year1:= Input("Year",1900,2400,2020);

OO:=DayOfMonth() = Day1 AND Month() = Month1 AND Year() = Year1;

D1:= Ref(OO,-2); D2:= Ref(OO,-4); D3:= Ref(OO,-6); D4:= Ref(OO,-8); D5:= Ref(OO,-10);

OO;D1;D2;D3;D4;D5;

{. Plot on chart as overlay it will plot 1}

I used for cycle to plot.

Hope this work

Edited by user Tuesday, January 19, 2021 8:21:22 PM(UTC)  | Reason: Not specified

Users browsing this topic
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.