Swbgrid
This Old Kings expert advisor (trading robot) for MetaTrader 4 is called Swbgrid. In the code it works with RSI, the Stochastic oscillator and moving averages. It raises the lot size after losses (martingale — high risk), works with a grid of orders and can size trades from your risk. It has 40 settings, for example Trade Managment (default ----- Trade Managment --), stealth mode (default true) and tp in money1 (default 5.0). Watch it on a demo account for a while — robots can behave differently with each broker. Inside: 3 EA files with source code (.mq4) you can open and edit in MetaEditor, 2 settings files (.set) and a PDF guide. 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 Swbgrid
Swbgrid is an expert advisor (trading robot) for MetaTrader 4 based on RSI, Stochastic and Moving Average. It increases the lot size after a losing trade (martingale), opens a grid of orders at fixed price steps and can size trades from your balance and risk percent. It has 40 settings, such as Trade managment, Stealth mode and Tp in money1. MQL source code included.
Files in the download: swb-grid eu h1.set, swb.set, SWB Grid 4.1 with Adaptive Range.mq4, swb grid 4.1.0.7.mq4, swb-GRID.mq4, StrategyTester H1.gif, StrategyTester-Swb-Grid.gif, StrategyTester.gif ….
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| Trade managment | ----- Trade Managment ----- | |
| Stealth mode | true | |
| Tp in money1 | 5.0 | |
| Tp in money2 | 5.0 | |
| Start lot | 0.1 | |
| Range1 | 10 | range for level 1 |
| Range2 | 20 | range for level 2 |
| Range3 | 30 | range for level 3 |
| Range4 | 40 | range for level 4 |
| Range5 | 50 | range for level 5 |
| Range6 | 100 | range for level 6 and up |
| Max levels | 10 | |
| Use sl and tp | false | |
| Sl | 30 | Stop loss distance |
| Nsm range | 25 | No Stealth Mode Range. Fixed range when using tp and sl instead of Stealth Mode. Set sl_and_tp to tr |
| Martingale | ----- Use Martingale ----- | |
| Lot multiplier | true | How much the lot size grows after a loss |
| Multiplier | 1.5 | How much the lot size grows after a loss |
| Lots increment | ----- Use Lots Increments instead of Mar | |
| Increament | 0.1 | |
| Indicators | ----- Indicators Settings----- | |
| Use bb | false | |
| Bb period | 20 | Period or timeframe used by the calculation |
| Bb deviation | 2 | |
| Bb shift | 0 | Bar shift (0 = current bar) |
| Use stoch | false | |
| K | 5 | |
| D | 3 | |
| Slowing | 3 | |
| Price field | 0 | |
| Stoch shift | 0 | Bar shift (0 = current bar) |
| Lo level | 30 | |
| Up level | 70 | |
| Use rsi | true | |
| Rsi period | 14 | Period or timeframe used by the calculation |
| Rsi shift | 0 | Bar shift (0 = current bar) |
| Lower | 30 | |
| Upper | 70 | |
| Other settings | ----- Other Settings ----- | |
| Magic | 3 | 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: Martingale · Grid · Risk & Lot Size · RSI · Stochastic · Moving Average · MT4 Expert Advisor · MQL4 Source Code