Loading…

Two Levels EA

From the Old Kings archive: Two Levels EA, an expert advisor (trading robot) for MetaTrader 4. It raises the lot size after losses (martingale — high risk), can hold buy and sell positions together and places pending orders. It has 40 settings, for example S1 (default ---------------- Entry S), Distance (default 20) and Use Time Out (default false). 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 and 1 settings file (.set). 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 Two Levels EA

Two Levels EA is an expert advisor (trading robot) for MetaTrader 4. It increases the lot size after a losing trade (martingale), can hold buy and sell positions at the same time (hedging) and places pending buy/sell stop or limit orders. It has 40 settings, such as S1, Distance and Use time out. MQL source code included.

It also moves the stop loss behind price (trailing stop / break-even) and can size trades from your balance and risk percent.

Files in the download: StrategyTester Two Levels EA EU M15.gif, StrategyTester Two Levels EA EU M15.zip, two levels ea eu m15.set, Two Levels EA.mq4.

Trading robots can lose money. Check every setting and test on a demo account before using real funds.

Settings

SettingDefaultWhat it does
S1---------------- Entry Settings
Distance20Distance between orders
Use time outfalse
Minutes time out1|------------------minutes
S2---------------- Money Management
Lots0.1|-----------------------lots size
Risk mmfalse|---------------------risk management
Risk percent1|------------------risk percentage
Martingalefalse|-----------------martingale
Multiplier2.0|-----------------multiplier martingale
Min lots0.01|-------------------minlots
Max lots100|--------------------maxlots
Basket profit lossfalse|-----------use basket loss/profit
Basket profit100000|---------------if equity reaches this level, close trades
Basket loss9999|-------------------if equity reaches this negative level, close trades
S3---------------- Order Management
Max trade per bar1
Stop loss0|------------------------stop loss
Take profit0|----------------------take profit
Hide slfalse|---------------------hide stop loss
Hide tpfalse|---------------------hide take profit
Trailing profit0|------------------trailing stop after profit reached
Trailing stop0|--------------------trailing stop
Trailing step0|--------------------trailing step
Break even0|-----------------------break even
Max orders1|-----------------------maximum orders allowed
Slippage3|------------------------slippage
Magic2009|------------------------magic number
S4---------------- MA Filter
Ma filterfalse|-------------------moving average filter
Ma period20|-----------------------ma filter period
Ma method0|------------------------ma filter method
Ma price0|-------------------------ma filter price
S5---------------- Time Filter
Trade on sundaytrue|---------------time filter on sunday
Monday to thursday time filterfalse|-time filter the week
Monday to thursday start hour0|-------start hour time filter the week
Monday to thursday end hour24|--------end hour time filter the week
Friday time filterfalse|-----------time filter on friday
Friday start hour0|-----------------start hour time filter on friday

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: Martingale · Hedging · Pending Orders · Trailing Stop & Break-even · Risk & Lot Size · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria