I assume you are not using IOG mode (intra bar order generation)? If so, then you should have the following (note you used this bar, but I use next bar):
if Value1 > Value1[1] then buy next bar at market;
if Value1 < Value1[1] then sell short next bar at market;
You are saying buy this bar but you originally posted you wanted to buy or sell short the open of the next bar correct?
If you are using IOG mode, then the order generation statements above would be the same and you would be buying or selling short the very next tick and NOT the open of the next bar. To do that you need to not be using IOG mode.
Heres a screenshot to explain myself better:
take a look at #1, A buy signal is triggered and it bought at around 46.30 (the close of the bar) but look at the open of that same bar is around 45.90 (thats the area a want it to buy, or somewhere close to it) a difference of 40 cents more or less.
Now take a look at #2, A short sell is triggered and sold short just below 47.60 (at bar close again) instead of selling short around 48.10 whe the bar opened.
I hope this little explanation helps
Thank you