Bezna$
New member
Hi.
I am trying to plot a line from a certain time or event on the chart that continues to right end of the chart. I am using the
condition but it starts from 1:00 AM no matter what the time is, in this case I am using 4 PM (1600).
How can I plot a line from a time or an event on the chart that goes all the way to the last bar?
Thank you in advance.
I am trying to plot a line from a certain time or event on the chart that continues to right end of the chart. I am using the
Code:
GetDay() != GetLastDay()
How can I plot a line from a time or an event on the chart that goes all the way to the last bar?
Thank you in advance.
Code:
def Time1 = 1600;
def sec1 = SecondsFromTime(Time1);
def isTime1 = (sec1 >= 0 and sec1[1] < 0) or (sec1 < sec1[1] and sec1 >= 0);
def P1 = if isTime1 then close else P1[1];
plot Plot1 = if GetDay() != GetLastDay() then Double.NaN else P1;
Plot1.SetDefaultColor(Color.BLUE);