Can I get help to adjust this to Central time and add two time lines for 9;20 and 9;45?
Code:
#skynetgen_KIP_INTRADY_TIMES
declare upper;
declare hide_on_daily;
declare once_per_bar;
input today_only= Yes;
def day = GetDay();
def lastDay = GetLastDay();
def isToday = If(day == lastDay, 1, 0);
def showReminders = isToday or !today_only;
def showScalp = GetAggregationPeriod() < AggregationPeriod.FIVE_MIN and showReminders;
#logic to work on tick charts too
def tickoff=30;#offset for tick chart
def nine920=SecondsTillTime(0920) <= tickoff and secondsfromtime(0920)<=tickoff;
def nine945=SecondsTillTime(0945) <= tickoff and secondsfromtime(0945)<=tickoff;
def ten=SecondsTillTime(1000) <= tickoff and secondsfromtime(1000)<=tickoff;
def ten1030=SecondsTillTime(1030) <= tickoff and secondsfromtime(1030)<=tickoff;
def eleven=SecondsTillTime(1100) <= tickoff and secondsfromtime(1100)<=tickoff;
def lunch=SecondsTillTime(1200) <= tickoff and secondsfromtime(1200)<=tickoff;
def PMSet=SecondsTillTime(1315) <= tickoff and secondsfromtime(1315)<=tickoff;
def bondclose=SecondsTillTime(1430) <= tickoff and secondsfromtime(1430)<=tickoff;
# Time Reminders
AddVerticalLine(showScalp and SecondsTillTime(0935) == 0, "FirstBar", Color.LIME, Curve.SHORT_DASH);
AddVerticalLine(showReminders and SecondsTillTime(0930) == 0, "Open", Color.CYAN, Curve.FIRM);
AddVerticalLine(showReminders and nine945, "945-Start Trading", Color.BLUE, Curve.SHORT_DASH);
AddVerticalLine(showReminders and ten, "9;00", Color.YELLOW, Curve.SHORT_DASH);
AddVerticalLine(showReminders and ten1030, "9;30", Color.RED, Curve.SHORT_DASH);
AddVerticalLine(showReminders and eleven , "1000", Color.YELLOW, Curve.SHORT_DASH);
AddVerticalLine(showReminders and Lunch, "Lunch", Color.YELLOW, Curve.SHORT_DASH);
AddVerticalLine(showReminders and PmSet, "PMSet", Color.RED, Curve.SHORT_DASH);
AddVerticalLine(showReminders and bondclose, "BondClose", Color.RED, Curve.SHORT_DASH);
AddVerticalLine(showReminders and SecondsTillTime(1530) == 0, "Last30", Color.CYAN, Curve.SHORT_DASH);
AddVerticalLine(secondsTillTime(1500)== 0,"Power HR", Color.GREEN, Curve.SHORT_DASH);
AddVerticalLine(secondsTillTime(1555) == 0, "5 MIN TIL CLOSE ", Color.BLUE, Curve.SHORT_DASH);
#AddVerticalLine(showReminders and Lunch, "Lunch", Color.LIGHT_GRAY, Curve.SHORT_DASH);
AddVerticalLine(secondsTillTime(1300) == 0, "Lunch Over", Color.GREEN, Curve.SHORT_DASH);
Last edited by a moderator: