Loading…

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

SettingDefaultWhat it does
Reversefalse
Trade order1true
Trade comment1Trade1Comment written on the orders
Trade lots10.1
Trade sl130
Trade ts150
Trade tp10
Trade order2true
Trade comment2Trade2Comment written on the orders
Trade lots20.1
Trade sl250
Trade ts280
Trade tp20
Trade order3true
Trade comment3Trade3Comment written on the orders
Trade lots30.1
Trade sl380
Trade ts3120
Trade tp30
Trade order4true
Trade comment4Trade4Comment written on the orders
Trade lots40.1
Trade sl4120
Trade ts4160
Trade tp40
Trade at close bartrue
Trailing stop0Trailing stop distance or switch
Trailing step1Trailing step
Break even0Move the stop to break-even
Magic number0Magic number that tells this EA's orders apart
Repeat3
Periods5Number of bars in the calculation
Use alertfalseTurn this alert on or off
Send emailtrueTurn this alert on or off
Slippage3Maximum slippage allowed when opening a trade
Show bars3000if showBars= 0 so the indicator will be shown for all the chart
Lev dp2Demar Pint Levels; 2 = central bar will be higher (lower) then 2 bars on the left side and 2 bars on
Q steps1number of steps/ no more than 3
Back step0number of staps back
Start bar0ifstartBar=0 so we have recommendation for the current bar, if 1 - for possible next bar

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
  6. Test it first on a demo account or in the Strategy Tester.

Download the PDF guide

Tags: Pending Orders · Trailing Stop & Break-even · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria