Ea Strategy 2
Ea Strategy 2 is an expert advisor (trading robot) for MetaTrader 4 from the Old Kings collection. Its source code uses MACD. It raises the lot size after losses (martingale — high risk), places pending orders and moves the stop behind price. It has 40 settings, for example comment (default EA), magic (default 1234) and moneymanagement (default Money Management). 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 5 settings files (.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 Ea Strategy 2
Ea Strategy 2 is an expert advisor (trading robot) for MetaTrader 4 based on MACD. It increases the lot size after a losing trade (martingale), 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 Comment, Magic and Moneymanagement. MQL source code included.
It also trades only in the hours you set (time filter) and can size trades from your balance and risk percent.
Files in the download: ea-strategy-instaforex-usd-min100usd-1to500-eurusd-m5-4digit.set, ea-strategy.mq4, strategy2.set, strategy3.set, strategy5.set, á® 100 ¤® 2200 § 4 £®¤ á ¬ aG¨®¬. ¯a®á ¤ª 9%.set, StrategyTester.gif.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
Settings
| Setting | Default | What it does |
|---|---|---|
| Comment | EA | comment to display in the order |
| Magic | 1234 | magic number required if you use different settings on a same pair, same timeframe |
| Moneymanagement | Money Management | |
| Lots | 0.1 | lots size |
| Mm | false | enable risk management |
| Risk | 1 | risk in percentage of the account |
| Minlot | 0.01 | minimum lots size |
| Maxlot | 50 | maximum lots size |
| Lotdigits | 2 | |
| Martingale | false | enable the martingale |
| Multiplier | 2.0 | multiplier used for the martingale |
| Ordersmanagement | Order Management | |
| Ecn | false | make the expert compatible with ecn brokers |
| Oppositeclose | true | close the orders on an opposite signal |
| Reversesignals | false | reverse the signals, long if short, short if long |
| Maxtrades | 100 | maximum trades allowed by the traders |
| Tradesperbar | 1 | maximum trades per bar allowed by the expert |
| Hidesl | false | hide stop loss |
| Hidetp | false | hide take profit |
| Stoploss | 0 | stop loss |
| Takeprofit | 0 | take profit |
| Trailingstart | 0 | profit in pips required to enable the trailing stop |
| Trailingstop | 0 | trailing stop |
| Trailingstep | 1 | margin allowed to the market to enable the trailing stop |
| Breakevengain | 0 | gain in pips required to enable the break even |
| Breakeven | 0 | break even |
| Maxspread | 100 | maximum spread allowed by the expert |
| Entrylogics | Entry Logics | |
| Usepipsdistance | false | Distance between orders |
| Pipsdistance | 20 | Distance between orders |
| Usersi | true | |
| Rsiperiod | 9 | Period or timeframe used by the calculation |
| Rsilong | 50 | |
| Rsilong2 | 56 | |
| Rsishort | 43 | |
| Rsishort2 | 32 | |
| Usemacd | true | |
| Macdfast | 17 | |
| Macdslow | 26 | |
| Macdsma | 9 |
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: Martingale · Pending Orders · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · MACD · MT4 Expert Advisor · MQL4 Source Code