Purge Expired Pending XAUUSD
Purge Expired Pending XAUUSD — MT4 script, supplied with source code and a compiled file. Source metadata: ID 979: Purge Expired Pending XAUUSD Source algorithm identifier: PURGE_EXPIRED_PENDING. Declared inputs include: MagicFilter, SymbolOverride, SlippagePoints, MaxAttempts, MaxQuoteAgeSeconds, StopLossMode, StopLossValue, TakeProfitMode, TakeProfitValue, ProfitLockMode, ProfitLockValue, TrailMode, TrailValue, AdjustmentMode, AdjustmentValue. Description extracted from the supplied source metadata. Compilation compatibility, runtime behavior and trading results have not been independently verified.
Script · MT4 · v1.0 · Free
About Purge Expired Pending XAUUSD
Purge Expired Pending XAUUSD is a script for MetaTrader 4. It is set up for gold (XAUUSD). It has 15 settings, such as Magic filter, Symbol override and Slippage points. MQL source code included.
Files in the download: Purge_Expired_Pending_XAUUSD.mq4, Purge_Expired_Pending_XAUUSD.ex4.
Settings
| Setting | Default | What it does |
|---|---|---|
| Magic filter | -1 | -1 means all magic numbers, still TargetSymbol only. |
| Symbol override | Explicit exact broker symbol override; blank uses catalog target. | |
| Slippage points | 30 | Maximum slippage allowed when opening a trade |
| Max attempts | 3 | |
| Max quote age seconds | 120 | |
| Stop loss mode | PipsMode | Stop loss distance |
| Stop loss value | 50.0 | Stop loss distance |
| Take profit mode | PipsMode | Take profit distance |
| Take profit value | 100.0 | Take profit distance |
| Profit lock mode | PipsMode | |
| Profit lock value | 5.0 | |
| Trail mode | PipsMode | Trailing stop distance or switch |
| Trail value | 20.0 | Trailing stop distance or switch |
| Adjustment mode | PipsMode | |
| Adjustment value | 5.0 |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Scripts.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the script onto a chart to run it once.
Tags: Gold (XAUUSD) · MT4 Script · MQL4 Source Code