#Красит фон графика. Зеленый, когда Цена выше обеих EMA и красный когда наоборот. #Ставить только на графики таймфреймом не выше, чем у меньшей EMA, иначе не показывает #www.nyser.ru © input price = FundamentalType.CLOSE; input aggSlow = AggregationPeriod.DAY; input aggFast = AggregationPeriod.min; input lengthSlow = 13; input lengthFast = 13; input averageType = AverageType.exponential; def MA_Slow = MovingAverage(averageType, Fundamental(price, period = aggSlow), lengthSlow); def MA_Fast = MovingAverage(averageType, Fundamental(price, period = aggFast), lengthFast); AssignBackgroundColor( if close>= MA_Slow and close>= MA_Fast then color.light_green else if close< MA_Slow and close< MA_Fast then color.light_red else Color.BLACK);