SignalX Order Session Guard
- Utilità
-
Ahmed Ismail Muhammad Ismail Al Talhat
SignalX — Algorithmic Trading Systems | MQL4 · MQL5 · MetaTrader 4 & 5
I build trading software I can defend line by line: Expert Advisors, indicators and utilities for MT4 and MT5 — each with hard risk controls, documented inputs, and no hidden grid or martingale.
◆ WHAT I BUILD - Versione: 1.0
- Attivazioni: 5
What this is
Pending orders left overnight and positions carried through the weekend are two of the most common ways a planned trade turns into an unplanned risk. This utility handles the clock for you: it cancels pending orders that have been sitting for longer than you allow, closes everything at a session end time you choose, and forces a cut-off before the Friday close.
What it does
Expires stale pending orders, flattens all positions at a chosen session end time, and forces a Friday cut-off before the weekend. Scope by magic, symbol or chart symbol.
- Three time-based lifecycle jobs in one EA with per-day once-only firing; the competing $30 tools do one of these each and none handles the Friday/weekend case.
- Runs on a single chart; it does not need to be the chart you trade from.
- No DLL calls. No external services. No network requests.
- No account, terminal, symbol or time limitation is embedded.
Inputs
| Input | Type | Default |
|---|---|---|
| InpExpirePendings | bool | true |
| InpPendingMaxAgeMin | int | 240 |
| InpFlatAtSessionEnd | bool | true |
| InpSessionEndHour | int | 21 |
| InpSessionEndMinute | int | 0 |
| InpFlatOnFriday | bool | true |
| InpFridayHour | int | 20 |
| InpFridayMinute | int | 0 |
| InpMagicFilter | int | -1 |
| InpSymbolFilter | string | |
| InpChartSymbolOnly | bool | true |
| InpKeepProfitable | bool | false |
| InpSlippage | int | 30 |
| InpAlerts | bool | true |
| InpShowPanel | bool | true |
| InpPanelX | int | 12 |
| InpPanelY | int | 24 |
How to use it
- Attach the EA to a chart of the symbol you trade.
- Set the inputs to match your own risk approach. Defaults are deliberately conservative.
- Allow live trading in the Expert Advisors settings for this EA.
- Test on a demo account first. That is not a formality; the defaults are not tuned to your broker.
Notes
- Written for MetaTrader 4, any broker, any account currency. Sizing maths uses the symbol's own tick value.
- Works alongside other EAs, including with a magic number you choose, so it will not fight them for orders it does not own.
- It performs management and measurement only; it does not generate trading signals.
Honest limits
- This is a tool, not a strategy. It does not predict anything and it cannot make a losing method profitable.
- No performance figures are published for it because tools of this kind do not have a meaningful backtest curve of their own.
- If your broker quotes oddly (very wide spreads, non-standard tick values) verify the sizing on a demo account before using real funds.
Trading involves risk of loss. Nothing here is financial advice.
