Timed Order Closure

Strategy: At 23:10 platform time daily, cancel all pending orders (LIMIT and STOP) for all symbols.

The time parameter can be modified in the EA’s parameter settings window, using the format “even hour:even minute,” e.g., “23:10.” This EA only needs to be loaded on one chart in an account to affect all symbols.

Terminology

Order Magic Number: When multiple order-placing EAs are loaded for the same symbol, each EA must have a unique number in its "Order Magic Number" parameter to distinguish its orders. This prevents logical errors by allowing EAs to identify and manage their respective orders.

Points: 1 point corresponds to the last decimal place of the symbol’s price. For a 5-decimal price, 1 point is 0.00001; for a 4-decimal price, 1 point is 0.0001.

Market Price Closure: BUY orders are closed at the BID price, SELL orders are closed at the ASK price, and pending orders are canceled.