it is possible.
you could either try using the function highd(1), witch returns the high of the day 1 day ago and write the code as:
buy 1000 shares at highd(0) stop;
or you could try putting both time frames in your chart and writing the code as :
buy 1000 shares at high of data2 stop;