require "Color"
require "TIlib"

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

Volume_draw($Blue)

if !$MA1
    $MA1 = VolumeMA_new(13)
    $MA2 = VolumeMA_new(26)
else
    VolumeMA_next($MA1)
    VolumeMA_draw($MA1, $Colors[0])
    VolumeMA_next($MA2)
    VolumeMA_draw($MA2, $Colors[1])
end
Indicator(0, $MA1[1])
Indicator(1, $MA2[1])
