Rdz Grid Traps.mq4
From the Old Kings archive: Rdz Grid Traps.mq4, an expert advisor (trading robot) for MetaTrader 4. Its name points to a grid of orders at fixed price steps. It works with a grid of orders, places pending orders and moves the stop behind price. It has 40 settings, for example No Trade On Dates (default 2015.01.05,2015.01.06), Date Time Type (default DTTLocalTime) and Daily Start Time (default 01:00:00). Watch it on a demo account for a while — robots can behave differently with each broker. Inside: 1 EA file with source code (.mq4) you can open and edit in MetaEditor. Old Kings are classic community tools shared as-is. Not tested by PolyMaria. Try it on a demo account first. Are you the author of this tool? Message us on Telegram (@abumarket_support) and we will credit you or take it down.
Expert advisor · MT4 · v1.0 · Free
About Rdz Grid Traps.mq4
Rdz Grid Traps.mq4 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 moves the stop loss behind price (trailing stop / break-even). It has 40 settings, such as No trade on dates, Date time type and Daily start time. MQL source code included.
It also can size trades from your balance and risk percent.
Files in the download: RdzGridTraps.mq4.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| No trade on dates | 2015.01.05,2015.01.06 | Dates in YYYY.MM.DD format for the EA NOT to trade |
| Date time type | DTTLocalTime | Date and Time base |
| Daily start time | 01:00:00 | Start Time (HH:mm:ss) |
| Daily stop time | 23:00:00 | Stop Time (HH:mm:ss) |
| Weekly start day | DOWSunday | Weekly Start Day |
| Weekly start time | 00:00:00 | Weekly Start Time (HH:mm:ss) |
| Weekly stop day | DOWSaturday | Weekly Stop Day |
| Weekly stop time | 00:00:00 | Weekly Stop Time (HH:mm:ss) |
| Use line start stop | false | Use Stop-Start from Vertical Line |
| Line start stop keyword | GT | Stop-Start Line Keyword |
| Stop time mode | STMNothing | Stop Time Action |
| Open type | OTDynamicRecreationThreshold | Placing Order Type |
| Order operation | LimitOrders | Order Operation |
| Order count per side | 3 | Grid Order Count (each side) |
| Limit max order count | false | Enable Max Order |
| Max order count | 4 | Max Order Count (total) |
| Recreation count per side | 9 | Grid Auto-Expand Count (each side) |
| Limit orders count | 8 | Limit Grid Orders Count |
| Recreation threshold | 0 | Auto-Expand Threshold (Points) |
| Grid step points | 70 | Grid Step (Points) |
| Current price interval | 90 | Current Price Interval (Points) |
| Magic number | 8888 | Unique ID (Magic Number) |
| Recalculation mode | ClNoRecalculate | Recalculation Mode |
| Initial lots dynamic base | DBBalance | Initial Lots Calculation Source |
| Initial lots type | ILTDynamicGradual | Initial Lots Type |
| Initial lots | 0.04 | Initial Lots |
| Initial lots mult | 0.0001 | Initial Lots Multiplier |
| Gradual lots operator | GOMultiply | Gradual Lots Operator |
| Gradual lots mult | 1.2 | Gradual Lots Multiplier |
| Comment info | Comment Info | |
| Profit taking mode | PTMWithCommAndSwap | Profit Taking Mode |
| Trailing mode | TRPNone | Profit Trailing Mode |
| Target profit dynamic base | DBBalance | Target Profit Calculation Source |
| Target type | TTFixed | Target Type |
| Target profit | 30 | Target Profit |
| Target profit mult | 0.004 | Target Profit Multiplier |
| Stop loss dynamic base | DBBalance | Stop Loss Calculation Source |
| Loss type | LTNone | Loss Type |
| Stop loss | -100 | Stop Loss |
| Stop loss mult | -0.0001 | Stop Loss Multiplier |
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: Grid · Pending Orders · Trailing Stop & Break-even · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code