require "Color"
require "TIlib"

$Names[0] = "Hist(12-26)"
$Colors[0] = $Blue

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