percentage crossover channel ea
Info
The percentage crossover channel ea is a Expert Advisor for MetaTrader 5 that the expert advisor uses the indicator. the strategy is simple:the mode of trading based on channel borders: if the low price of the first bar has crossed or touched the lower border downwards, a buy position is opened; if the high price of the first bar has crossed or touched the upper border upwards, a sell position is opened; if the reverse mode is enabled, sell is opened instead of buy and vice versa.
Usage
This tool is typically used for automated trading on major forex pairs and gold.
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 percentage crossover channel ea
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 uses the indicator.
Typical Use Case
This Expert Advisor excels in automated trading and technical analysis 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: pro ma crossover ea for mt5 - another powerful expert for MetaTrader 5 traders.
the expert advisor uses the indicator.
the strategy is simple:
the mode of trading based on channel borders:
Also recommended: automated trading with price crossover and moving average indicator - similar expert with strong performance on MetaTrader 5.
if the low price of the first bar has crossed or touched the lower border downwards, a buy position is opened;
if the high price of the first bar has crossed or touched the upper border upwards, a sell position is opened;
if the reverse mode is enabled, sell is opened instead of buy and vice versa.
mode of trading based on the midline intersection:
if the close price of the first bar has crossed the middle line downwards, a buy position is opened;
if the close price of the first bar has crossed the middle line upwards, a sell position is opened;
if the reverse mode is enabled, sell is opened instead of buy and vice versa.
it is a swing expert advisor, which can only have one position in the market. if a buy signal emerges and there is an open sell position, such a position will be closed and a buy position will be opened. the opposite is true for sell signals.
the expert advisor can reverse indicator signals to open sell instead of buy and vice versa. you can also set stop loss and take profit in points. if invalid stop loss and take profit values are specified, the ea will adjust the values to the minimum
stoplevel
allowed for the symbol.
the expert advisor will also adjust the lot in case an incorrect value is specified. if the lot is too large, the ea will adjust it in order to be able to open a position. if there is no money for opening even the minimum lot, the signal will be skipped.
for a proper operation, the ea needs the compiled indicator file .
also note that the expert advisor is designed for training and strategy testing purposes.
the ea has ten input parameters:
experts magic number
- a unique identifier for the ea's positions;
percent
- the indicator parameter, which sets the channel width;
applied price
- the indicator parameter;
trade at the intersection of the middle line
- enable/disable trading based in the middle line intersection;
reverse trade
- enable/disable the reverse mode;
lots
- the volume of positions to open;
stop loss in points
- stop loss value in points;
take profit in points
- take profit value in points;
slippage of price
- allowable slippage;
multiplier spread for stops
- spread multiplier for calculating a correct distance for stop orders. for stop loss and take profit orders (as well as pending orders), there is a minimum allowed distance for placing such orders -
stoplevel
. i.e. stop loss and take profit (as well as pending orders) cannot be placed closer than this distance to the price. if
stoplevel
is zero, it does not mean its absence, it only means that
stoplevel
is floating. in this case, the minimum distance is usually equal to spread*, but sometimes even the double spread is not enough. so, this parameter allows specifying a custom multiplier for the spread used to calculate the minimum distance for placing stop orders.
to check the strategy, two tests were performed on eurusd h1, using data in the interval from 2017.01.02 to 2018.01.19, in two modes: default (at channel borders) and at the intersection of the middle line.
fig.1. testing graph of trading using channel borders on eurusd h1 2017.01.02 - 2018.01.19
fig.2. testing results of trading using channel borders on eurusd h1 2017.01.02 - 2018.01.19
fig.3. testing graph of middle line crossover trading on eurusd h1 2017.01.02 - 2018.01.19
fig.4. testing results of middle line crossover trading on eurusd h1 2017.01.02 - 2018.01.19
You may also like: trade signals based on price crossover with moving average, confirmed by adx - 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.