How to store last value of scanned symbols

This code scans for all the symbols which have open=high and open=low at start of trading day.
The problem is I am not clear about how to store the last value of scanned symbol in an array so that I can place order at last value

Buy = (DayOpen==DayLow) AND (TimeNum() >= 091500) AND (TimeNum()<091700);
Short = (DayOpen)==(DayHigh) AND (TimeNum() >= 091500) AND (TimeNum()<091700);

Sell = TimeNum()>151500;
Cover = TimeNum()>151500;

Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);

Short=ExRem(Short,Cover);
Cover=ExRem(Cover,Short);

buyPrice = LastValue(C);
sellPrice = LastValue(C);
shortPrice = LastValue(C);
coverPrice = LastValue(C);