am trying to show close line on a15 and 5 minutes chart i don't know much about coding trying to copy and paste did this and only works on a 5 minutes what need to do to show on 15 minutes also thank you
input aggregationPeriod = AggregationPeriod.DAY;
input showOnlyLastPeriod = no;
def yclose = if secondsfromTime(1655) == 0
then close
else yclose[1];
def bn = barnumber();
def ybar = if secondsfromTime(1655) == 0
then bn
else double.nan;
plot pclose = if showonlylastPeriod and bn < highestall(ybar)
then double.nan
else yclose;
pclose.setpaintingStrategy(paintingStrategy.HORIZONTAL);
input aggregationPeriod = AggregationPeriod.DAY;
input showOnlyLastPeriod = no;
def yclose = if secondsfromTime(1655) == 0
then close
else yclose[1];
def bn = barnumber();
def ybar = if secondsfromTime(1655) == 0
then bn
else double.nan;
plot pclose = if showonlylastPeriod and bn < highestall(ybar)
then double.nan
else yclose;
pclose.setpaintingStrategy(paintingStrategy.HORIZONTAL);