When the market opens, the first print will be both the high and the low for the session, so maybe you can code it as long if c = open + (ave range * .5) short if c = open - (ave range * .5) What am I missing?
This is a good approach if you understand the limitations. Overcoming them is tricky. They can be overcome by a dual definition of trend with BO and fading system.
On the Day Low, are you referring to the current bar's low? or the current bar's high? If so, you'd need to wait at least a half hour to make use of this bit of code.
Results are the only thing of use. Once you leave it out, there is nothing here to comment on. It is one more of a million various ideas floated by people, that almost always, does not really work.