This is my very first algo, I don't know what I don't know and I don't know why all my Market orders are being placed / executed at midnight exactly…   at time 00: 00 : 00 …

The algo uses Super Trend and I intend for it to buy on Bullish signal and liquidate when trend reverses, then place a Sell market order straight away.   So obviously, orders must be executing at all different times.. 

Please help if you can….