Harami Trading Strategy
Info
The Harami Trading Strategy is a Expert Advisor for MetaTrader 4 that the harami trading strategy utilizes two moving averages and the harami pattern, incorporating trailing stop loss and take profit mechanisms. It is designed for 4-hour and 1-day time frames on major forex pairs and NASDAQ stocks.
Usage
This tool is typically used for automated trading on major forex pairs and gold.
Platform
This Expert Advisor works exclusively on MetaTrader 4 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL4/Experts folder via File ? Open Data Folder in MetaTrader 4.
How to Install and Use Harami Trading Strategy
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
What this tool does
The Harami trading strategy utilizes two moving averages and the Harami pattern, incorporating trailing stop loss and take profit mechanisms.
Typical Use Case
This Expert Advisor excels in automated trading and technical analysis on MetaTrader 4.
Compatible Platform & Setup
This Expert Advisor works on MetaTrader 4. Place the file in the MQL4/Experts folder and restart the terminal.
Description & Settings
Related: Scalper EA for Weekend Trading on BTC - another powerful expert for MetaTrader 4 traders.
The Harami trading strategy utilizes two moving averages and the Harami pattern, incorporating trailing stop loss and take profit mechanisms. It is designed for 4-hour and 1-day time frames on major forex pairs and NASDAQ stocks.Also recommended: Weekend Trading Strategy - similar expert with strong performance on MetaTrader 4.
It is recommended to test the strategy on a demo account before live trading.
This Expert Advisor (EA) operates based on the price of the open candle.
To disable lot size increase after a losing trade, set 'increasefactor' to 0 in the inputs.
Use_tp_in_money: Enable take profit in monetary value (true/false).
Tp_in_money: Take profit in monetary value (10-100).
Use_tp_in_percent: Enable take profit in percentage (true/false).
Tp_in_percent: Take profit in percentage (10-100).
Money Trailing Stop for Multiple Trades:
Enable_trailing: Enable trailing stop with monetary value (true/false).
Take profit in the current currency (25-200).
Stop loss in the current currency (1-20).
Exit: Close trades if the trend is against you and manage drawdown (true/false).
Lots: Lot size (0.01-1).
Lots size exponent (1.01-2).
Increasefactor: Lot size increase factor from total margin after a losing trade (0.001-0.1).
Stop_loss: Stop loss (30-500). Set 600 for multiple trades.
Magicnumber: Magic number (1-100000).
Takeprofit: Take profit (50-200). Set 600 for multiple trades.
Fastma: Fast moving average (1-20).
Slowma: Slow moving average (50-200).
Mom_sell: Momentum sell trigger (0.1-0.9).
Mom_buy: Momentum buy trigger (0.1-0.9).
Drawdown Control:
Useequitystop: Enable equity stop (true/false).
Totalequityrisk: Equity risk (0.01-20).
Max_trades: Maximum number of trades (1-12).
Single Trade Settings:
Usetrailingstop: Enable trailing stop (true/false).
Whentotrail: Percentage of profit to start trailing (40-100).
Trailamount: Percentage to trail (40-100).
Distance from candle: Distance from the candle (1-100).
Usecandeltrail: Enable trailing stop based on candles (true/false).
X: Number of candles (1-100).
Usemovetobreakeven: Enable break-even (true/false).
Whentomovetobe: Percentage of profit to move to break-even (1-30).
Pipstomovesl: Pips to move stop loss (1-30).
Optimization and Usage:
- Optimize the EA every few months and maintain consistent input values.
- Use as a hedging grid EA or a single trade EA.
- For backtesting, ensure proper configuration and historical data.
You may also like: e-news-lucky$ - automated news trading expert advisor - excellent alternative for expert users on MetaTrader 4.
Source Code
/
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.