Farhad3a
Farhad3a is an expert advisor (trading robot) for MetaTrader 4 from the Old Kings collection. Its source code uses moving averages. It moves the stop behind price and can size trades from your risk. It has 17 settings, for example l Take Profit (default 10), s Take Profit (default 10) and take Profit (default 10). 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 Farhad3a
Farhad3a is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average. It moves the stop loss behind price (trailing stop / break-even) and can size trades from your balance and risk percent. It has 17 settings, such as L take profit, S take profit and Take profit. MQL source code included.
Files in the download: Farhad3a.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 |
|---|---|---|
| L take profit | 10 | recomended no more than 20 |
| S take profit | 10 | recomended no more than 20 |
| Take profit | 10 | recomended no more than 20 |
| Stop loss | 10 | do not use s/l at all. Take it easy man. I'll guarantee your profit :) |
| Magic ea | 112 | Magic EA identifier. Allows for several co-existing EA with different input values |
| L trailing stop | 8 | trail stop in points |
| S trailing stop | 8 | trail stop in points |
| Cl open buy | Blue | Different colors for different positions |
| Cl close buy | Aqua | Different colors for different positions |
| Cl open sell | Red | Different colors for different positions |
| Cl close sell | Violet | Different colors for different positions |
| Cl modi buy | Blue | Different colors for different positions |
| Cl modi sell | Red | Different colors for different positions |
| Slippage | 2 | Maximum slippage allowed when opening a trade |
| Lots | 1 | you can change the lot but be aware of margin. Its better to trade with 1/4 of your capital. |
| Name ea | Farhad3.mq4 | To "easy read" which EA place an specific order and remember me forever :) |
| Signal candle | 0 |
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 · Moving Average · MT4 Expert Advisor · MQL4 Source Code