Session Exit Agent
- Utilità
- Versione: 1.0
- Attivazioni: 5
Session Exit Agent watches the next trading break for the chart symbol. Use the default Preview mode to see which positions or pending orders are in scope and when the warning and exit windows begin. You can opt in to actual close and cancel requests.
Set the scope and time
Attach the utility to a separate desktop MT5 chart. Set the exact position magic number. Zero includes manual trades with magic zero. Enter a ticket to narrow the scope to one position or pending order. Pending-order cancellation is off by default. On a netting account, closing an entire net position requires its specific ticket and an additional whole-position opt-in.
The schedule comes from the broker’s weekly trading sessions in server time. Touching sessions across midnight are joined. A split trading day can have more than one break. For an announced early close, enter the broker date and time in Inputs. An unknown schedule leaves the agent waiting.
Preview and execution
The defaults warn 20 minutes before the break and start the exit window 5 minutes before it. Popup and mobile warnings are optional. Configure terminal Notifications for mobile push. Keep MT5 running. The agent acts during the open exit window, so a disconnection that lasts until the break can prevent an exit.
To request actual exits, enable execution in the inputs and allow trading in MT5. Before each submission the agent checks the ticket, current broker time, session window and trading permissions. It records the attempt in the terminal’s local files and sends at most one request per eligible ticket per session close, including across reattachment on the same terminal.
The panel and Experts log show the request response and the outcome found in broker history. A position exit is confirmed from closing deals linked to the returned broker order or deal and the selected position. The stored references allow the check to resume after reattachment. A response with no usable reference is displayed as unresolved. A rejection, partial fill or uncertain response can leave exposure requiring your attention. The broker determines execution and fill price.
