you won't know tomorrow's open until the open tomorrow... your software will have to be running at the open and place the trade then...