#include <Color>
#include <TIlib>

$Names[0] = "基準"
$Colors[0] = $Red
$Names[1] = "転換"
$Colors[1] = $Green
$Names[2] = "先行1"
$Colors[2] = $LightPink
$Names[3] = "先行2"
$Colors[3] = $LightBlue
$Names[4] = "遅行"
$Colors[4] = $Blue

if !$Ichimoku 
    $Ichimoku = Ichimoku_new(9, 26, 52)
    Candle_draw($White, $Blue)
else
    Ichimoku_next($Ichimoku)
    Ichimoku_fillKumo($Ichimoku, $Colors[2], $Colors[3])
    {-1}Ichimoku_repairCandle($White, $Blue)
    Candle_draw($White, $Blue)
    Ichimoku_draw($Ichimoku, $Colors[0], $Colors[1], $Colors[2], $Colors[3], $Colors[4])
end
