trend me leave me
Info
The trend me leave me is a Expert Advisor for MetaTrader 5 that the expert advisor works with one position (can be used on netting accounts). the direction of a new open signal is calculated depending on the direction of the last closed position (buy or sell) and the way that position was closed (by stop loss or take profit).
Usage
This tool is typically used for trend following strategies across multiple currency pairs.
Platform
This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use trend me leave me
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 expert advisor works with one position (can be used on netting accounts).
Typical Use Case
This Expert Advisor excels in trend following on MetaTrader 5.
Compatible Platform & Setup
This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.
Description & Settings
Related: Steep MA Trend EA - another powerful expert for MetaTrader 5 traders.
the expert advisor works with one position (can be used on netting accounts). the direction of a new open signal is calculated depending on the direction of the last closed position (buy or sell) and the way that position was closed (by stop loss or take profit).
Also recommended: Super Trend Trading EA - similar expert with strong performance on MetaTrader 5.
general principle:if a position was closed by take profit, the next position will be opened in the same direction;
if a position was closed by stop loss, then the next position should be opened in the opposite direction.
type of closing is determined in ontradetransaction() using : the transaction and its type is accessed in ontradetransaction() first:
, and then the deal_reason property is checked.
if the breakeven parameter is not equal to zero, the position will be moved to breakeven if possible.
after determining the direction in ontradetransaction(), check for further conditions:
to open a buy position, the sar indicator on bar #0 must be less than the close of bar #0, and adx on bar #0 must be less than 20.
to open a sell position, the sar indicator on bar #0 must be greater than the close of bar #0, and adx on bar #0 must be less than 20; input parameters
stop loss (in pips)
- stop loss value;
take profit (in pips)
- take profit value;
risk in percent for a deal
- risk percent per trade;
breakeven (in pips)
- the breakeven value;
adx: averaging period
- adx indicator parameter;
sar: price increment step - acceleration factor
- sar indicator parameter;
sar: maximum value of step
- sar indicator parameter.
default parameters, eurusd,m30 from 2017.01.08 to 2018.02.05
You may also like: adx trend pullback ea: trend strength and volatility-based trading - excellent alternative for expert users on MetaTrader 5.
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.