Correlation Bot 9
Correlation Bot 9 is an expert advisor (trading robot) for MetaTrader 4 from the Old Kings collection. Its source code uses moving averages and ATR. It moves the stop behind price, can size trades from your risk and handles several symbols. It has 35 settings, for example Remark1 (default == Main Settings ==), Magic Number (default 0) and Signals Only (default False). 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 Correlation Bot 9
Correlation Bot 9 is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average and ATR. It moves the stop loss behind price (trailing stop / break-even), can size trades from your balance and risk percent and works on several symbols at once. It has 35 settings, such as Remark1, Magic number and Signals only. MQL source code included.
Files in the download: CorrelationBot.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 |
|---|---|---|
| Remark1 | == Main Settings == | |
| Magic number | 0 | Magic number that tells this EA's orders apart |
| Signals only | False | |
| Alerts | False | Turn this alert on or off |
| Signal mail | False | |
| Play sounds | False | Turn this alert on or off |
| Each tick mode | True | |
| Close on opposite signal | True | |
| Lots | 0 | Trade size in lots |
| Money management | False | |
| Risk | 0 | Risk per trade (percent of balance) |
| Slippage | 5 | Maximum slippage allowed when opening a trade |
| Use stop loss | True | Stop loss distance |
| Stop loss | 150 | Stop loss distance |
| Use take profit | True | Take profit distance |
| Take profit | 60 | Take profit distance |
| Use trailing stop | False | Trailing stop distance or switch |
| Trailing stop | 30 | Trailing stop distance or switch |
| Move stop once | False | |
| Move stop when price | 50 | |
| Move stop to | 1 | |
| Remark2 | ||
| Remark3 | == MA Fast Settings == | |
| Ma1 period | 15 | Period or timeframe used by the calculation |
| Ma1 shift | 0 | Bar shift (0 = current bar) |
| Ma1 method | 0 | |
| Ma1 price | 0 | |
| Remark4 | ||
| Remark5 | == MA Slow Settings == | |
| Ma2 period | 30 | Period or timeframe used by the calculation |
| Ma2 shift | 0 | Bar shift (0 = current bar) |
| Ma2 method | 0 | |
| Ma2 price | 0 | |
| Use atr pct | 0.7 | |
| Use atr stop | true |
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: Trailing Stop & Break-even · Risk & Lot Size · Multi-Currency · Moving Average · ATR · MT4 Expert Advisor · MQL4 Source Code