think or swim draw verticle line
Budget: $10 – $30 USD
think or swim i want a verticle line draw end at the of day after last candle 1600 or 4pm for stock when i do not run extended hours. i got a version but only works when i run extended hours
declare lower;
#Plot Vertical Lines at specified time
script IsTime {
input time = 0000;
plot IsTime = SecondsFromTime(time)[1] < 0 and SecondsFromTime(time) >= 0;
}
input time1 = 0930;
input time2 = 1600;
DefineGlobalColor("Time1", GetColor(1));
DefineGlobalColor("Time2", GetColor(1));
AddVerticalLine(IsTime(time1), Floor(time1 / 100) + ":" + AsText(time1 % 100, "%02.0f"), GlobalColor("Time1"));
AddVerticalLine(IsTime(time2), Floor(time2 / 100) + ":" + AsText(time2 % 100, "%02.0f"), GlobalColor("Time2"));
declare lower;
#Plot Vertical Lines at specified time
script IsTime {
input time = 0000;
plot IsTime = SecondsFromTime(time)[1] < 0 and SecondsFromTime(time) >= 0;
}
input time1 = 0930;
input time2 = 1600;
DefineGlobalColor("Time1", GetColor(1));
DefineGlobalColor("Time2", GetColor(1));
AddVerticalLine(IsTime(time1), Floor(time1 / 100) + ":" + AsText(time1 % 100, "%02.0f"), GlobalColor("Time1"));
AddVerticalLine(IsTime(time2), Floor(time2 / 100) + ":" + AsText(time2 % 100, "%02.0f"), GlobalColor("Time2"));