# Renko # Mobius input brickSize = 5; def c = close; def bricks = CompoundValue(1, if c > bricks[1] + brickSize then bricks[1] + brickSize else if c < bricks[1] - brickSize then bricks[1] - brickSize else bricks[1] , bricks[1]); plot bricks_ = Round(Bricks/TickSize(),0) * TickSize(); def mortar = CompoundValue(1, if bricks_ != bricks_[1] then bricks_[1] else mortar[1], mortar[1]); plot mortar_ = Round(mortar/TickSize(),0) * TickSize(); AddCloud(bricks_, mortar_, color.green, color.red, yes); # End Code