Anti Cable Run
From the Old Kings archive: Anti Cable Run, an expert advisor (trading robot) for MetaTrader 4. In the code it works with fractals. It places pending orders, has a trading-hours filter and can size trades from your risk. It has 32 settings, for example Step (default 170), _ (default Step (0 - )) and Inc Step (default 0). Run it in the Strategy Tester and then on a demo account to see how it opens and closes trades. 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 Anti Cable Run
Anti Cable Run is an expert advisor (trading robot) for MetaTrader 4 based on Fractals. It places pending buy/sell stop or limit orders, trades only in the hours you set (time filter) and can size trades from your balance and risk percent. It has 32 settings, such as Step, _ and Inc step. MQL source code included.
It also has a news filter.
Files in the download: antiCableRun.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 |
|---|---|---|
| Step | 170 | Distance between orders |
| _ | Step (0 - ) | |
| Inc step | 0 | Distance between orders |
| Count orders | 10 | |
| ___ | 1 - , 2- - , 3 - | |
| Method step | 1 | Distance between orders |
| 1 | ||
| Start step | 170 | Distance between orders |
| 2 | - N- | |
| Count bars | 20 | |
| First lot | 0.01 | |
| Inc lot | 0.0 | |
| Trade start hour | 0 | Hour when trading starts (server time) |
| Trade start minutes | 0 | |
| Trade end hour | 0 | Hour when trading stops (server time) |
| Trade end minutes | 0 | |
| Force close orders | false | |
| __ | 1 - , 2- , 3 - | |
| Min profit method | 1 | |
| Min profit1 | 1.5 | |
| Min profit2 | 100 | |
| Min profit3 | 1 | |
| Max loss method | 1 | |
| Max loss1 | 300 | |
| Max loss2 | 30.0 | |
| Max loss3 | 10 | |
| Force close orders before news | false | |
| Use news filter | false | |
| Mins before news | 60 | |
| Mins after news | 30 | |
| Slippage | 2 | Maximum slippage allowed when opening a trade |
| Magic | 22211123345 | 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: Pending Orders · Time Filter · Risk & Lot Size · News Trading · Fractals · MT4 Expert Advisor · MQL4 Source Code