#include <Color>
#include <TIlib>

$Names[0] = "MACD(12-26)"
$Colors[0] = $Red
$Names[1] = "Signal(9)"
$Colors[1] = $Green

if !$MACD
    $MACD = MACD_new(12, 26, 9)
else
    MACD_next($MACD)
    MACD_draw($MACD, $Colors[0], $Colors[1])
end
