Please help me to add and adjust to show those lines appeared in one day, it can start from 9:00 am. Thank you
input price = close;
input length20 = 20;
input length40 = 40;
input length200 = 200;
input displace = 0;
plot SMA20 = Average(price[-displace], length20);
plot SMA40 = Average(price[-displace], length40);
plot SMA200 = Average(price[-displace], length200);
SMA20.SetDefaultColor(GetColor(1));
SMA40.SetDefaultColor(color.red);
SMA200.SetDefaultColor(color.yellow);
input price = close;
input length20 = 20;
input length40 = 40;
input length200 = 200;
input displace = 0;
plot SMA20 = Average(price[-displace], length20);
plot SMA40 = Average(price[-displace], length40);
plot SMA200 = Average(price[-displace], length200);
SMA20.SetDefaultColor(GetColor(1));
SMA40.SetDefaultColor(color.red);
SMA200.SetDefaultColor(color.yellow);