Collaps.mq4
Collaps.mq4 is an expert advisor (trading robot) for MetaTrader 4 from the Old Kings collection. Its source code uses moving averages and CCI. It places pending orders, moves the stop behind price and can size trades from your risk. It has 16 settings, for example Account Is Mini (default 0), Live Trading (default 0) and Riskpercent (default 10). Before any live use, test it on a demo account and check its lot size, stop loss and trading hours. 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 Collaps.mq4
Collaps.mq4 is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average and CCI. It places pending buy/sell stop or limit orders, moves the stop loss behind price (trailing stop / break-even) and can size trades from your balance and risk percent. It has 16 settings, such as Account is mini, Live trading and Riskpercent. MQL source code included.
It also works on several symbols at once.
Files in the download: Collaps.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 |
|---|---|---|
| Account is mini | 0 | Change to 1 if trading mini account |
| Live trading | 0 | Change to 1 if trading live. |
| Riskpercent | 10 | // Change to whatever percent of equity you wish to risk. |
| Decrease factor | 3 | Used to decrease lot size after a loss is experienced to protect equity. Recommended not to change. |
| Stop loss | 35 | Maximum pips willing to lose per position. |
| Trailing stop | 0 | Change to whatever number of pips you wish to trail your position with. |
| Maximum losses | 3 | Maximum number of losses per day willing to experience. |
| Margincutoff | 800 | Expert will stop trading if equity level decreases to that level. |
| Maxtrades | 4 | Total number of positions on all currency pairs. You can change this number as you wish. |
| No dead time | 0 | |
| Take profit | 12 | Maximum profit level achieved. |
| Stop | 10 | Minimum profit level achieved and usually achieved target. |
| Ma period | 120 | Moving average period. |
| Ma period2 | 40 | Moving average period 2. |
| Lots | 1 | standard lot size. |
| Turnon | 1 | Turns expert on, change to 0 and no trades will take place even if expert is enabled. |
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: Pending Orders · Trailing Stop & Break-even · Risk & Lot Size · Multi-Currency · Moving Average · CCI · MT4 Expert Advisor · MQL4 Source Code