Hi,
I am using a couple of different ways to plot vertical lines on a tick chart, but for some reason only the assigned "OPEN" vertical line plots on the chart.
Is there a reason why the other vertical lines won't work?
input targetTime930 = 930;
def OPEN = SecondsFromTime(targetTime930) == 0;
AddVerticalLine(OPEN, "OPEN", Color.RED);
input targetTime1030 = 1030;
def IB = SecondsFromTime(targetTime1030) == 0;
AddVerticalLine(IB, "IB", Color.CYAN);
input targetTime1355 = 1355;
def LAST_5mn = SecondsFromTime(targetTime1355) == 0;
AddVerticalLine(LAST_5mn, "LAST_5mn", Color.WHITE);
input showverticals = yes;
AddVerticalLine(showverticals and SecondsFromTime(0930) == 0, "OPEN", Color.RED);
AddVerticalLine(showverticals and SecondsFromTime(1030) == 0, "IB", Color.CYAN);
AddVerticalLine(showverticals and SecondsFromTime(1355) == 0, "LAST_5mn", Color.WHITE);
Any genius mind that can help please?
I am using a couple of different ways to plot vertical lines on a tick chart, but for some reason only the assigned "OPEN" vertical line plots on the chart.
Is there a reason why the other vertical lines won't work?
input targetTime930 = 930;
def OPEN = SecondsFromTime(targetTime930) == 0;
AddVerticalLine(OPEN, "OPEN", Color.RED);
input targetTime1030 = 1030;
def IB = SecondsFromTime(targetTime1030) == 0;
AddVerticalLine(IB, "IB", Color.CYAN);
input targetTime1355 = 1355;
def LAST_5mn = SecondsFromTime(targetTime1355) == 0;
AddVerticalLine(LAST_5mn, "LAST_5mn", Color.WHITE);
input showverticals = yes;
AddVerticalLine(showverticals and SecondsFromTime(0930) == 0, "OPEN", Color.RED);
AddVerticalLine(showverticals and SecondsFromTime(1030) == 0, "IB", Color.CYAN);
AddVerticalLine(showverticals and SecondsFromTime(1355) == 0, "LAST_5mn", Color.WHITE);
Any genius mind that can help please?