vars:today_open(0);
vars:yesterday_high(0);
vars:yesterday_low(0);
vars:yesterday_close(0);

if time = 0845 then today_open = open;
yesterday_high = highD(1);
yesterday_low = lowD(1);
yesterday_close = closeD(1);

plot1(today_open,"T_open");
plot2(yesterday_high,"Y_high");
plot3(yesterday_low,"Y_low");
plot4(yesterday_close,"Y_low");