Place Sell Stop XAUUSD
Place Sell Stop XAUUSD — MT4 script, supplied with source code and a compiled file. Source metadata: ID 2279: Place Sell Stop XAUUSD Source algorithm identifier: PLACE_SELL_STOP. Declared inputs include: MagicFilter, SymbolOverride, SlippagePoints, MaxAttempts, MaxQuoteAgeSeconds, LotMode, FixedLot, RiskPercentValue, StopLossMode, StopLossValue, TakeProfitMode, TakeProfitValue, EntryDistanceMode, EntryDistanceValue, LadderOrders, LadderStepPips. 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 Place Sell Stop XAUUSD
Place Sell Stop XAUUSD is an expert advisor (trading robot) for MetaTrader 4. It opens a grid of orders at fixed price steps, places pending buy/sell stop or limit orders and can size trades from your balance and risk percent. It has 19 settings, such as Magic filter, Symbol override and Slippage points. MQL source code included.
It also is set up for gold (XAUUSD).
Files in the download: Place_Sell_Stop_XAUUSD.mq4, Place_Sell_Stop_XAUUSD.ex4.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
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 | |
| Lot mode | RiskPercentMode | |
| Fixed lot | 0.10 | Trade size in lots |
| Risk percent value | 1.0 | Risk per trade (percent of balance) |
| 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 |
| Entry distance mode | PipsMode | Distance between orders |
| Entry distance value | 20.0 | Distance between orders |
| Ladder orders | 3 | |
| Ladder step pips | 10.0 | Distance between orders |
| Pending expiration minutes | 0 | |
| Max new orders | 20 | |
| Trade magic | 732279 | Magic number that tells this EA's orders apart |
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 → Experts.
- 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 expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
- Test it first on a demo account or in the Strategy Tester.
Tags: Gold (XAUUSD) · Pending Orders · Grid · Risk & Lot Size · MT4 Script · MQL4 Source Code