require "Color"
require "TIlib"

$Names[0] = "%MA(13)"
$Colors[0] = $Red
$Names[1] = "%MA(26)"
$Colors[1] = $Green

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

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