Not my code, but it will do what you want... #squeeze momentum histogram only declare lower; def K = (Highest(High, length) + Lowest(low, length)) / 2 + ExpAverage(close, length); plot Momo = Inertia(close - K / 2, length); Momo.setPaintingStrategy(PaintingStrategy.HISTOGRAM); Momo.setLineWeight(3); Momo.assignValueColor(if Momo > Momo[1] and Momo > 0 then Color.Cyan else if Momby JT07 - Trading Discussion