Interceptor
This software component for MetaTrader 5 is built to enhance the capabilities of your trading environment. This Expert Advisor serves as automated trading software. It is utilized to monitor financial markets and execute trades based on predefined algorithmic rules, enabling precise position management without the need for constant manual oversight.
How to Setup and Use Interceptor
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.
Description & Settings
Idea by
: .
MQL5 code by
: .
A trading strategy based on working with a "fan" of Moving Averages (three timeframes, five Moving Averages on each). The EA is designed to work on GBPUSD,M5 "five-digit." If you try to run it on another symbol or another timeframe, the EA will finish its operation with an error.
Two methods of obtaining data from indicators Moving Average are used in the code:
Data from only one bar per request (obtaining data in variable) - "
iMAGet
"
Data from several bars per request (obtaining data in array) - "
iMAGetArray
" and "
iStochasticGetArray
"
is also widely used to accelerate calculations.
Inputs
lot size when position is opened normally (if signals do not match)
flat coefficient on M5 (number of points per bar)
initial stop loss (if it is below 100, no stop loss will not be placed)
take profit (if it is below 100, no take profit will be placed)
minimum profit in points upon moving to breakeven
stop loss upon moving to breakeven (we move it to breakeven, if the parameter is above 9)
the maximum allowable distance between MAs for a fan on chart M5 (in signal 1 only)
the maximum allowable distance between MAs for a fan on chart M15 (in signal 4 only)
the maximum allowable distance between MAs for a fan on chart M15 (in signal 6 only)
stochastic period (for M5)
upper level of stochastic (for M5)
lower level of stochastic (for M5)
stochastic period (for M15)
upper level of stochastic (for M15)
lower level of stochastic (for M15)
minimum size of the candlestick body (in signal 1 only)
low flat (the minimum flat length in bars)
high flat (the maximum flat height in points)
minimum distance in bars between the indicator peaks for divergence on M5
minimum percentage of the long hammer shadow
maximum percentage of the short hammer shadow
minimum hammer size in points (in chart M5)
how long ago the hammer was present (the highest number of its bar)
on how many bars the hammer is the maximum (in signal 6 only)
narrow source (the largest width of the fan on M5 at the narrowest point)
how many bars ago the fan converged to the "narrow source" (to practically a point)
maximum/minimum range that is broken through ("narrow source" in bars)
marking your positions with such number
minimum shift of trailing stop
distance from trailoing stop to the price (if it is below 100, trailing does not function)
A single test in the "Every tick based on real ticks" mode: