function run()
{
StartDate = 20100101;
BarPeriod = 1440;
vars Close = series(priceClose());
vars SMA100 = series(SMA(Close,100));
vars SMA30 = series(SMA(Close,30));
string Format = "n%04i-%02i-%02i %02i:%02i, %.10f, %.10f";
file_append("JC2.csv",strf(Format,year(),month(),day(),hour(),minute(), Close[0], SMA30[0]));