input price=close;
input length1 = 9;
input length2 = 25;
plot upper_ch = Highest(price, length2)[length1];
plot lower_ch = Lowest(price, length2)[length1];
plot upper_ch1 = Highest(price, length1) + TickSize() * 10;
plot lower_ch1 = Lowest(price, length1) - TickSize() * 10;
AddCloud(if open > upper_ch and close > upper_ch then upper_ch else upper_ch1, upper_ch1);
AddCloud(if open <lower_ch and close <lower_ch then lower_ch else lower_ch1, lower_ch1);
input length1 = 9;
input length2 = 25;
plot upper_ch = Highest(price, length2)[length1];
plot lower_ch = Lowest(price, length2)[length1];
plot upper_ch1 = Highest(price, length1) + TickSize() * 10;
plot lower_ch1 = Lowest(price, length1) - TickSize() * 10;
AddCloud(if open > upper_ch and close > upper_ch then upper_ch else upper_ch1, upper_ch1);
AddCloud(if open <lower_ch and close <lower_ch then lower_ch else lower_ch1, lower_ch1);