Cci 100
This Old Kings expert advisor (trading robot) for MetaTrader 4 is called Cci 100. Judging by its name, it is built around the Commodity Channel Index (CCI). In the code it works with CCI. It moves the stop behind price and can size trades from your risk. It has 28 settings, for example Time Frame (default 0), s0 (default === ===) and Lots (default 0.1). Before any live use, test it on a demo account and check its lot size, stop loss and trading hours. Inside: 2 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 Cci 100
Cci 100 is an expert advisor (trading robot) for MetaTrader 4 based on CCI. It moves the stop loss behind price (trailing stop / break-even) and can size trades from your balance and risk percent. It has 28 settings, such as Time frame, S0 and Lots. MQL source code included.
Files in the download: cci.zip, CCI_100_v1.ex4, CCI_100_v1.mq4, cctick.zip.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| Time frame | 0 | . 0 - , : 1,5,15,30,60,240 |
| S0 | === === | |
| Lots | 0.1 | Trade size in lots |
| Fixed lot | true | Trade size in lots |
| Risk | 0.1 | . FixedLot=false |
| Means type | 3 | . 1 - Balance, 2 - Equity, 3 - FreeMargin |
| Lots digits | 1 | |
| Slippage | 3 | Maximum slippage allowed when opening a trade |
| Stop loss | 500 | Stop loss distance |
| Take profit | 500 | Take profit distance |
| Magic n | 333 | . . |
| S1 | === === | |
| Max count | 1 | |
| Max buy count | 1 | , -1 - |
| Max sell count | 1 | , -1 - |
| Close on rev | true | , -1 - |
| S2 | === === | |
| Cci period | 14 | Period or timeframe used by the calculation |
| Cci price | 5 | |
| Shift | 1 | Bar shift (0 = current bar) |
| S3 | === === | |
| Trailing stop use | false | Trailing stop distance or switch |
| Trailing stop start | 350 | Trailing stop distance or switch |
| Trailing stop | 150 | Trailing stop distance or switch |
| S4 | === === | |
| Break even use | false | Move the stop to break-even |
| Break even start | 300 | BreakEvenLevel |
| Break even level | 300 | BreakEvenStart. BreakEvenStart-BreakEvenLevel |
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: CCI · Trailing Stop & Break-even · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code