Discussions
»
Product and Service Development
»
Formula Assistance
»
Draw Vertical Lines between 4 days on intraday basis.
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
|
|
|
|
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?
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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.
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,960
Thanks: 92 times Was thanked: 155 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
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 1/31/2009(UTC) Posts: 18 Location: Mumbai
Thanks: 2 times
|
Originally Posted by: kthakker0 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 |
Guest (Hidden)
|
Discussions
»
Product and Service Development
»
Formula Assistance
»
Draw Vertical Lines between 4 days on intraday basis.
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.