Demark Lines EA 2
Demark Lines EA 2 — a MetaTrader 4 expert advisor (trading robot) kept in the Old Kings collection. It places pending orders and moves the stop behind price. It has 40 settings, for example Reverse (default false), Trade Order1 (default true) and Trade Comment1 (default Trade1). Watch it on a demo account for a while — robots can behave differently with each broker. 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 Demark Lines EA 2
Demark Lines EA 2 is an expert advisor (trading robot) for MetaTrader 4. It places pending buy/sell stop or limit orders and moves the stop loss behind price (trailing stop / break-even). It has 40 settings, such as Reverse, Trade order1 and Trade comment1. MQL source code included.
Files in the download: DemarkLinesEA (1).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 |
|---|---|---|
| Reverse | false | |
| Trade order1 | true | |
| Trade comment1 | Trade1 | Comment written on the orders |
| Trade lots1 | 0.1 | |
| Trade sl1 | 30 | |
| Trade ts1 | 50 | |
| Trade tp1 | 0 | |
| Trade order2 | true | |
| Trade comment2 | Trade2 | Comment written on the orders |
| Trade lots2 | 0.1 | |
| Trade sl2 | 50 | |
| Trade ts2 | 80 | |
| Trade tp2 | 0 | |
| Trade order3 | true | |
| Trade comment3 | Trade3 | Comment written on the orders |
| Trade lots3 | 0.1 | |
| Trade sl3 | 80 | |
| Trade ts3 | 120 | |
| Trade tp3 | 0 | |
| Trade order4 | true | |
| Trade comment4 | Trade4 | Comment written on the orders |
| Trade lots4 | 0.1 | |
| Trade sl4 | 120 | |
| Trade ts4 | 160 | |
| Trade tp4 | 0 | |
| Trade at close bar | true | |
| Trailing stop | 0 | Trailing stop distance or switch |
| Trailing step | 1 | Trailing step |
| Break even | 0 | Move the stop to break-even |
| Magic number | 0 | Magic number that tells this EA's orders apart |
| Repeat | 3 | |
| Periods | 5 | Number of bars in the calculation |
| Use alert | false | Turn this alert on or off |
| Send email | true | Turn this alert on or off |
| Slippage | 3 | Maximum slippage allowed when opening a trade |
| Show bars | 3000 | if showBars= 0 so the indicator will be shown for all the chart |
| Lev dp | 2 | Demar Pint Levels; 2 = central bar will be higher (lower) then 2 bars on the left side and 2 bars on |
| Q steps | 1 | number of steps/ no more than 3 |
| Back step | 0 | number of staps back |
| Start bar | 0 | ifstartBar=0 so we have recommendation for the current bar, if 1 - for possible next bar |
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 · MT4 Expert Advisor · MQL4 Source Code