require "Color"
require "TIlib"

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

Candle_draw($White, $Blue)

if ! $EMA13
    $EMA13 = EMA_new(13)
else
    EMA_next($EMA13)
    EMA_draw($EMA13, $Colors[0])
end

if ! $EMA26
    $EMA26 = EMA_new(26)
else
    EMA_next($EMA26)
    EMA_draw($EMA26, $Colors[1])
end
