Caspian EA
From the Old Kings archive: Caspian EA, an expert advisor (trading robot) for MetaTrader 4. In the code it works with RSI. It can hold buy and sell positions together, places pending orders and moves the stop behind price. It has 18 settings, for example Part One (default Trading Configurations), Caspian Factor (default 3.0) and Buy Positions (default TRUE). Watch it on a demo account for a while — robots can behave differently with each broker. Inside: 8 EA files 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 Caspian EA
Caspian EA is an expert advisor (trading robot) for MetaTrader 4 based on RSI. It can hold buy and sell positions at the same time (hedging), places pending buy/sell stop or limit orders and moves the stop loss behind price (trailing stop / break-even). It has 18 settings, such as Part one, Caspian factor and Buy positions. MQL source code included.
It also trades only in the hours you set (time filter) and can size trades from your balance and risk percent.
Files in the download: CaspianEA.CHF - Open.ex4, CaspianEA.CHF - Open.mq4, CaspianEA.GBP - Open.ex4, CaspianEA.GBP - Open.mq4, ATR.ex4, Channel.ex4, EFF.ex4, MarketMovement.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 |
|---|---|---|
| Part one | Trading Configurations | |
| Caspian factor | 3.0 | |
| Buy positions | TRUE | |
| Sell positions | TRUE | |
| Max trades | 3 | Maximum number of open trades |
| Take profit | 10.0 | Take profit distance |
| Stop loss | 50 | Stop loss distance |
| Use hedging | TRUE | |
| Magic number | 777 | Magic number that tells this EA's orders apart |
| Slippage | 3 | Maximum slippage allowed when opening a trade |
| Part two | Money Management Configurations | |
| Use money management | TRUE | |
| Risk | 50 | Risk per trade (percent of balance) |
| Lots | 0.1 | Trade size in lots |
| Lots digit | 1 | |
| Part three | Time Configurations | |
| Start hour | 23 | Hour when trading starts (server time) |
| End hour | 2 | Hour when trading stops (server time) |
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: Hedging · Pending Orders · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · RSI · MT4 Expert Advisor · MQL4 Source Code