#Thinkorswim studies #Меняет цвет свечей на белый в указанное время по NY. #В данном примере будет подсвечивать первый час с открытия, а так же обеденное время и последний час торговой сессии. #Thinkorswim https://RadchenkoVY.com /TOS input Start_Time1 = 0930; input End_Time1 = 1030; input Start_Time2 = 1200; input End_Time2 = 1300; input Start_Time3 = 1500; input End_Time3 = 1600; def Open1 = SecondsTillTime(Start_Time1) <= 0; def Close1 = SecondsTillTime(End_Time1) <= 0; def Open2 = SecondsTillTime(Start_Time2) <= 0; def Close2 = SecondsTillTime(End_Time2) <= 0; def Open3 = SecondsTillTime(Start_Time3) <= 0; def Close3 = SecondsTillTime(End_Time3) <= 0; def Off_Time = Open1 and !Close1 or Open2 and !Close2 or Open3 and !Close3; AssignPriceColor( if Off_Time then Color.WHITE else Color.CURRENT);