Slope Trade ADX V
This Old Kings expert advisor (trading robot) for MetaTrader 4 is called Slope Trade ADX V. Its name points to ADX / DMI trend strength. In the code it works with ADX. It moves the stop behind price, can size trades from your risk and has a news filter. It has 40 settings, for example sec1 (default ---- EA Config ---------), Comment String (default SlopeTradeADX) and Verbose (default true). 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 Slope Trade ADX V
Slope Trade ADX V is an expert advisor (trading robot) for MetaTrader 4 based on ADX. It moves the stop loss behind price (trailing stop / break-even), can size trades from your balance and risk percent and has a news filter. It has 40 settings, such as Sec1, Comment string and Verbose. MQL source code included.
Files in the download: SlopeTradeADX_v3a.mq4, Текстовый документ.txt.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| Sec1 | ---- EA Config ------------ | |
| Comment string | SlopeTradeADX | Comment written on the orders |
| Verbose | true | |
| Take trades | true | |
| Signal mail | true | |
| Alert on | true | Turn this alert on or off |
| Exit on change | true | |
| Use mm | true | |
| Margin check | true | |
| Max open trades | 10 | |
| Every tick mode | true | |
| Sec5 | ------ MM ------------- | |
| Method | Dollar | must be "Percent" or "Dollar" |
| Dollar risk per trade | 20 | Risk per trade (percent of balance) |
| Percent risk per trade | 3 | Risk per trade (percent of balance) |
| Sec2 | --------- Signal Settings ---------- | |
| Use slope tf1 | true | |
| Slope tf1 | 1440 | |
| Use slope tf2 | true | |
| Slope tf2 | 240 | |
| Use slope tf3 | true | |
| Slope tf3 | 60 | |
| Use slope tf4 | true | |
| Slope tf4 | 30 | |
| ADXTF | 30 | |
| Adx level | 35 | |
| Sec3 | ---------- Trade Management -------- | |
| Lots | 1 | ignored if UseMM = true |
| Slippage | 10 | Maximum slippage allowed when opening a trade |
| Stop loss | 50 | Stop loss distance |
| Take profit | 0 | Take profit distance |
| Break even gain | 50 | Move the stop to break-even |
| Break even level | 10 | Move the stop to break-even |
| Trail gain | 100 | Trailing stop distance or switch |
| Trail level | 50 | Trailing stop distance or switch |
| Sec4 | ----------- Indicator Settings --------- | |
| Settings file | SlopeSettings.txt | |
| Slope period | 80 | Period or timeframe used by the calculation |
| Slope method | 3 | |
| Slope price | 0 |
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: ADX · Trailing Stop & Break-even · Risk & Lot Size · News Trading · MT4 Expert Advisor · MQL4 Source Code