Loading…

Farhad Hill V22

From the Old Kings archive: Farhad Hill V22, an expert advisor (trading robot) for MetaTrader 4. The file name marks it as version 22. In the code it works with MACD, the Stochastic oscillator and moving averages. It moves the stop behind price, can size trades from your risk and handles several symbols. It has 40 settings, for example Account Is Mini (default false), Money Management (default false) and Trade Size Percent (default 5). 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 · v22 · Free

About Farhad Hill V22

Farhad Hill V22 is an expert advisor (trading robot) for MetaTrader 4 based on MACD, Stochastic and Moving Average. It moves the stop loss behind price (trailing stop / break-even), can size trades from your balance and risk percent and works on several symbols at once. It has 40 settings, such as Account is mini, Money management and Trade size percent. MQL source code included.

Files in the download: FarhadHill_V22.mq4.

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

Settings

SettingDefaultWhat it does
Account is minifalseChange to true if trading mini account
Money managementfalseChange to false to shutdown money management controls.
Trade size percent5Change to whatever percent of equity you wish to risk.
Lots1you can change the lot but be aware of margin. Its better to trade with 1/4 of your capital.
Max lots100
Stop loss0Maximum pips willing to lose per position.
Trailing stop15Change to whatever number of pips you wish to trail your position with.
Use trailing stoptrueTrailing stop distance or switch
Trailing stop type2Type 1 moves stop immediately, Type 2 waits til value of TS is reached
First move20Type 3 first level pip gain
Trailing stop120Move Stop to Breakeven
Second move30Type 3 second level pip gain
Trailing stop220Move stop to lock is profit
Third move40type 3 third level pip gain
Trailing stop320Move stop and trail from there
Take profit20Maximum profit level achieved. recomended no more than 20
Margin cutoff300Expert will stop trading if equity level decreases to that level.
Slippage3Possible fix for not getting closed Could be higher with some brokers
Use macdtrue
Macd price1
Use ma crossfalse
Ma slow period21Period or timeframe used by the calculation
Ma fast period2Period or timeframe used by the calculation
Ma shift1Bar shift (0 = current bar)
Ma mode2
Ma price5
Use momentumtrue
Use psartrue
Momentum period14Period or timeframe used by the calculation
Momentum price1
Momentum high100
Momentum low100
Use stoch leveltrue
Stoch mode0
Stoch price00, 1
Stoch high60
Stoch low35
Use stoch crossfalse
Signal candle0
Signal time frame0Period or timeframe used by the calculation

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

Old Kings — classic MT4 & MT5 collection · PolyMaria