Loading…

MA Cross With Exit EA 3

MA Cross With Exit EA 3 is an expert advisor (trading robot) for MetaTrader 4 from the Old Kings collection. Its name points to moving averages. Its source code uses moving averages. It raises the lot size after losses (martingale — high risk), moves the stop behind price and can size trades from your risk. It has 40 settings, for example Comment1 (default - Strategy Parameters -), EA Activated (default true) and Time Frame (default Min_60). Before any live use, test it on a demo account and check its lot size, stop loss and trading hours. 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 MA Cross With Exit EA 3

MA Cross With Exit EA 3 is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average. It increases the lot size after a losing trade (martingale), moves the stop loss behind price (trailing stop / break-even) and can size trades from your balance and risk percent. It has 40 settings, such as Comment1, Ea activated and Time frame. MQL source code included.

Files in the download: MA_Cross_with_Exit_EA.mq4.

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

Settings

SettingDefaultWhat it does
Comment1- Strategy Parameters -Comment written on the orders
Ea activatedtrue
Time frameMin_60Period or timeframe used by the calculation
Order typeBoth
Maximum trades open3
Wait mins for next trade30
Ma1 period5Period or timeframe used by the calculation
Ma1 methodSMA
Ma1 price typeCLOSE
Ma2 period30Period or timeframe used by the calculation
Ma2 methodSMA
Ma2 price typeCLOSE
Ma3 period10Period or timeframe used by the calculation
Ma3 methodSMA
Ma3 price typeCLOSE
Max pips away from cross10
Comment2- Order magic number. May be used as useComment written on the orders
Magic n123456Magic number that tells this EA's orders apart
Comment3- AutoLots True will calculate Lots autoComment written on the orders
Risk managementAutomaticRisk per trade (percent of balance)
Comment4- Automatic Risk, For ex: 2.5 means 2.5%Comment written on the orders
Auto risk percent2Risk per trade (percent of balance)
Auto max risk in total orders7Risk per trade (percent of balance)
Comment5- Manual Number of Lots (if not AutomatiComment written on the orders
Manual lots0.3
Manual maximum lots3.0
Comment6- Maximum price slippage for buy or sellComment written on the orders
Slippage3Maximum slippage allowed when opening a trade
Comment7- Stop loss in Pips -Comment written on the orders
Stop loss10Stop loss distance
Comment8- Take profit in Pips -Comment written on the orders
Take profit20Take profit distance
Comment9- Trailing Stop in Pips -Comment written on the orders
Trailing stop20Trailing stop distance or switch
Trailing step5Trailing stop distance or switch
Comment10- Should the EA use alerts -Comment written on the orders
Sound alerttrueTurn this alert on or off
Email alertfalseTurn this alert on or off
Comment11- Optional EA actions -Comment written on the orders
Ea soundstrueTurn this alert on or off

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

Old Kings — classic MT4 & MT5 collection · PolyMaria