#------------------------
# create a custom color
# 70,70,70 is light gray
#input color_red_num1 = 70;
#input color_green_num1 = 70;
#input color_blue_num1 = 170;
#DefineGlobalColor( "shade1" , CreateColor( color_red_num1, color_green_num1, color_blue_num1));
#AddCloud(hiline, loline, GlobalColor( "shade1" ), GlobalColor( "shade1" ));
# ref
# hex color picker
# https://www.w3schools.com/colors/colors_picker.asp
#input show_start_verticalline = no;
#input show_end_verticalline = no;
#AddVerticalLine(show_start_verticalline and start1, "start", Color.CYAN);
#AddVerticalLine(show_end_verticalline and end1, "end", Color.CYAN);
# is current bar before normal trading hours?
#def before = if SecondsTillTime(start) > 0 then 1 else 0;
# is current bar during normal trading hours?
#def daytime = if SecondsFromTime(start) >= 0 and SecondsTillTime(end) > 0 then 1 else 0;
# is current bar after normal trading hours?
#def after = if SecondsFromTime(end) > 0 then 1 else 0;
#def start1 = if SecondsTillTime(start) == 0 then 1 else 0;
#def end1 = if SecondsFromTime(end) == 0 then 1 else 0;
#