require "Color"
require "TIlib"

$Names[0] = "MA(20)"
$Colors[0] = $Blue
$Names[1] = "+ƒÐ"
$Colors[1] = $Green
$Names[2] = "-ƒÐ"
$Colors[2] = $Green
$Names[3] = "+2ƒÐ"
$Colors[3] = $Red
$Names[4] = "-2ƒÐ"
$Colors[4] = $Red

Candle_draw($White, $Blue)

if !$BB
    $BB = BB_new(20)
else
    BB_next($BB)
    BB_draw($BB, $Colors[0], $Colors[1], $Colors[3])
end
Indicator(0, $BB[1])
Indicator(1, $BB[1] + $BB[3])
Indicator(2, $BB[1] - $BB[3])
Indicator(3, $BB[1] + 2 * $BB[3])
Indicator(4, $BB[1] - 2 * $BB[3])
