#показывает, когда цена упирается перед пробитием в вчерашние Hi\Low или в уровень .00. Круглые уровни учитываются только за пределами вчерашних HiLow, если пробило, то уже не показывает. #Cнять галочку Include Extended Session #www.nyser.ru © def iHighDay = high(period = "DAY")[0]; def iLowDay = Low(period = "DAY")[0]; def iHiPrevDay = high(period = "DAY")[1]; def iLowPrevDay = Low(period = "DAY")[1]; def bFigureHigh = if iHighDay == round(iHighDay,0) and iHighDay>=iHiPrevDay then 1 else 0; def bFigureLow = if iLowDay == round(iLowDay,0) and iLowDay<=iLowPrevDay then 1 else 0; def bDayHigh = if iHighDay == iHiPrevDay then 1 else 0; def bDayLow = if iLowDay == iLowPrevDay then 1 else 0; plot bOutput = if bFigureHigh then 3 else if bFigureLow then 4 else if bDayHigh then 1 else if bDayLow then 2 else 100; AssignBackgroundColor (if bOutput==1 or bOutput==3 then Color.LIGHT_GREEN else if bOutput==2 or bOutput==4 then Color.LIGHT_RED else Color.CURRENT); bOutput.AssignValueColor (if (bOutput > 0 and bOutput < 100 ) then Color.black else Color.CURRENT);