How long is an order valid? Until end of trading day or period?
As Example:
My EA’s period is on hourly basis. When I place a stopp or limit at 10 o’clock will this order be cancelled at end of trading day or after 10:59:59?
If the orders you are talking about are pending ones, they last 1 bar. So if your strategy is running on a daily timeframe, the orders will expire the next day, at Close.