require "Color"
require "TIlib"

$Names[0] = "Hist(5-20)"
$Colors[0] = $Blue

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