Hardprofit 2
This Old Kings expert advisor (trading robot) for MetaTrader 4 is called Hardprofit 2. In the code it works with moving averages. It moves the stop behind price, can size trades from your risk and trades breakouts. It has 33 settings, for example rem1 (default //---- Definition Trend ), Breakout Periode (default 1) and Trend Periode (default 3). 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. 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 Hardprofit 2
Hardprofit 2 is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average. It moves the stop loss behind price (trailing stop / break-even), can size trades from your balance and risk percent and trades breakouts. It has 33 settings, such as Rem1, Breakout periode and Trend periode. MQL source code included.
Files in the download: hardprofit(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 |
|---|---|---|
| Rem1 | //---- Definition Trend et Breakout | |
| Breakout periode | 1 | Number of bars in the calculation |
| Trend periode | 3 | Number of bars in the calculation |
| Rem2 | //---- Order | |
| Only short | false | |
| Only long | false | |
| Max trades per bar | 1 | Maximum number of open trades |
| Stop loss | 40 | Stop loss distance |
| Break even | 30 | Move the stop to break-even |
| Seuil sl | 330 | |
| Partial tp1 | 550 | |
| Partial ratio1 | 30 | |
| Partial tp2 | 1100 | |
| Partial ratio2 | 70 | |
| Take profit | 1500 | Take profit distance |
| Slippage | 30 | Maximum slippage allowed when opening a trade |
| Max spread | 22 | Maximum spread allowed to trade |
| Magic | 12387 | Magic number that tells this EA's orders apart |
| Rem3 | //---- MM: 1.Fixed 2.Geometrical 3.Propo | |
| Mm type | 3 | |
| Fixed lots | 0.1 | Trade size in lots |
| Geometrical factor | 3 | |
| Proportional risk | 90 | Risk per trade (percent of balance) |
| Last x trades | 10 | |
| Decrease factor | 2 | |
| Tssf trigger1 | 1 | |
| Tssf ratio1 | 50 | |
| Tssf trigger2 | 2 | |
| Tssf ratio2 | 75 | |
| Tssf trigger3 | 3 | |
| Tssf ratio3 | 100 | |
| Rem4 | //---- Debug | |
| Debug mode | false |
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: Trailing Stop & Break-even · Risk & Lot Size · Breakout · Moving Average · MT4 Expert Advisor · MQL4 Source Code