require "Color"
require "TIlib"

$Names[0] = "%MA(5)"
$Colors[0] = $Red
$Names[1] = "%MA(25)"
$Colors[1] = $Green
$Names[2] = "%MA(75)"
$Colors[2] = $Blue

if !$MA0
    $MA0 = DiffMA_new(5)
else
    DiffMA_next($MA0)
    DiffMA_draw($MA0, $Colors[0])
end

if !$MA1
    $MA1 = DiffMA_new(25)
else
    DiffMA_next($MA1)
    DiffMA_draw($MA1, $Colors[1])
end

if !$MA2
    $MA2 = DiffMA_new(75)
else
    DiffMA_next($MA2)
    DiffMA_draw($MA2, $Colors[2])
end
