Forum on trading, automated trading systems and testing trading strategies
How to Start with Metatrader 5
Sergey Golubev, 2014.05.07 18:18
There is good article concerning to fundamental trading (for creation of the EAs related to News Trading) :
Building an Automatic News Trader As Investopedia
states, a news trader is "a trader or investor who makes trading or
investing decisions based on news announcements". Indeed, economic
reports such as a country's GDP, consumer confidence indexes and
employment data of countries, amongst others, often produce significant
movements in the currency markets. Have you ever attended a U.S.
Non-Farm Payrolls release? If so, you already know that these reports
may determine currencies' recent future and act as catalysts for trends
VirtualTradePad - is a contol panel for working with orders in МetaТrader 5 : buy, sell, buystop, buylimit, sellstop, selllimit, close, delete, modify, tralling stop.
VirtualTradePad won 2nd prize in the "Best Control Panel in the MQL5 Language" Contest.
The panel consists of 5 tabs.
VirtualTradePad PositionsStyle VirtualTradePad Ordersstyle VirtualTradePad SignalsStyleDemo version of the panel - VirtualTradePad LiteProfit or Loss PadINFO PadYou can also try this panel for
This indicator incorporates the volume to inform the market trend. A warning system (chart, SMS and e-mail) is incorporated for warning when a certain level is exceeded.
Developed by Marc Chaikin, Chaikin Money Flow (CMF) measures the amount of Money Flow Volume (MFV) over a specific period. Money Flow Volume forms the basis for the Accumulation Distribution Line. Instead of a cumulative total of Money Flow Volume, Chaikin Money Flow simply sums Money Flow Volume for a specific look-back
This is a half scalping system that analyzes the market using a transmission function and price movement speed.
This Expert Advisor is intended for trading on EURUSD, however it can run on other currency pairs. Please use the M1 timeframe.
You should optimize only two parameters: Seconds_to_move and TradePrice. It is sufficient to optimize Bobra Adept only once, for example, for a half year period. After that, Bobra Adept shows good results on a forward period (or backward in my case). This ca
The indicator shows a line of a relative trend based on an oscillator selected from the list. The line can be used for support/resistance depending on where the price is. Direction (fall/rise) changes when the oscillator crosses the specified levels (it is equal to the middle of the range by default, the value is adjustable) and can be additionally displayed in a different color. Change in the direction of the secondary smoothed price trend is displayed as arrows (you can also enable alerts); it
SeventhMohammed5 is a unique indicator, which is a collection of 7 standard indicators: Bears Power, Bulls Power, Commodity Channel Index, Force Index, Moving Average of Oscillator, Accelerator Oscillator, Awesome Oscillator. Signals appear when the selected indicator crosses the zero level, upward crossover - an arrow up (a buy signal), downward crossover is - an arrow down (a sell signal). Signals from the higher timeframe are displayed as a large arrow in the upper right corner. It is recomme
The indicator determines the inside bar and marks its High/Low. It is plotted based on the closed candles (does not redraw). The identified inside bar can be displayed on the smaller periods. You may set a higher period (to search for the inside bar) and analyze on a smaller one. Also you can see the levels for Mother bar.
Period to find Inside Bar — the period to search for the inside bar. If a specific period is set, the search will be performed in that period. Ty
Auto Trade Driver is an automatic powerful tool (run as Expert Advisor) that helps you to manage risk and control orders and maximize your profit in multi-protect/trailing-stop rules.
This tool is very useful for both scalpers and trend followers. It not only calculates the trade risk exactly, but also protects and maximizes your profits in real-time.
With this tool, the only thing you have to do is to enter trade by your own strategy, then it will auto-drive your position with exit strategy y
The script is intended for automatic placing of Buy Stop pending orders, Stop Losses and Take Profits on the user specified levels.
Avoiding unwanted entering a long position in case of false hitting the level as a result of widening of the spread by a dealing center. Avoiding unwanted triggering of a Stop Loss in case a quote pierces a significant level (fractal) without further confirmation with the close price. Setting a necessary virtual order and entering the marke
FULL Automatic is a fully autonomous trading robot for MetaТrader 5 without configurable parameters.
It is designed for traders having no knowledge of trading basics. It works in Low, Medium, High and Extremal trading modes.
The EA applies modified versions of well-known strategies, including Elliott waves, following a trend, half-pyramiding, scalping, speculative trading with a double deposit protection. The EA switches the strategies automatically. The robot does not open n
A script for opening a grid of orders
If you need to quickly open several pending orders (Buy Limit, Sell Limit, Buy Stop, Sell Stop) on a certain distance from the current price, this script will do all the routine for you! Allow AutoTrading before running the script.
Run the script on a chart.
Language of messages displayed (EN, RU, DE, FR, ES) - language of the output messages (English, Russian, German, French, Spanish). Price for open - open price. If set to
This is the first public MQL5 indicator using the cluster filtering. The advanced smoothing effect allows the digital filter to transform an ordinary moving average into a new faster indicator providing fewer false signals. At least, that is the purpose of the new experimental project. The project stages and ClusterSMA features are described in the author's blog (in Russian).
The indicator is based on the cluster digital filter that is successfully used in another area. At the time of publicati
Active Lines - a powerful professional tool for operations with lines on charts. Active Lines provides a wide range of actions for events when the price crosses lines. For example: notify, open/modify/close a position, place/remove pending orders. With Active Lines you can assign several tasks to one line, for each of which you can set individual trigger conditions, as well as conditions for re-activations and the number of possible activations.
Active Lines helps you easily organize various tr
Auto Trade Copier is designed to copy trades between multi MetaTrader 5 accounts/terminals with 100% accuracy.
With this tool, you can act as either a provider (source) or a receiver (destination). All trading actions will be copied from the provider to the receiver with no delay.
Note: Demo version for testing can be downloaded at: https://www.mql5.com/en/market/product/5006.
Followings are highlight features:
Switch between Provider or Receiver role within one tool.One provider can copy tr
Three variables are available for every strategy, any one of them can be disabled, their period can be changed.
type_order=ORDER_FILLING _FOK - order filling type.
ReverseTrade=false — trades opens in reverse direction if true. ExitOnBar=true — trades close on each bar only. spreadcover=false — Spread you pay includes in profit trades. It's like trade with zero spread but you should remember that it can decrease exact match between tester's result and live one. It
The Sane Reversal indicator is one of the leading oscillators. The signals are generated early, unlike in other indicators which give the signal after the price goes far away in either direction. The indicator displays the price reversals using arrows with high accuracy. The arrows appear on the zero bar and do not flicker of disappear regardless of the market volatility, which allows to trade effectively with short stop losses:
the Buy signal - white arrow on the bar Low,the Sell signal - red
This script help user record the value of Moving Average and OHLC at the moment once deals happen.
The datas save as .CSV format file so you can quantitative analysis someone's trading.
Please input value of MA's parameters you like. It tells you the path of data file when script is stopped.
My Money Manager like a risk controller, which places your trades with the exact volume that meets your desired stop loss risk.
It can also help you to preview your EP/SL/TP levels before placing an order by dragging these levels directly on a chart, and keep reporting about them during the position opening.
With this tool, you will feel more comfortable when deciding to open orders, as well as forecasting your profit/loss with your orders. Placing orders is a very precise and profe
The use of a polynomial expansion of data opens up new possibilities for analysis and decision making. But the problem of all existing algorithms is a very slow computation.
The main feature of this indicator is its fast algorithm. The speed of calculation of the polynomial algorithm and its standard deviation values is several thousand times faster than conventional algorithms. So this is a convenient algorithm for use without the need to apply supercomputers.
Beginning with the version 1.4
The Synchronized Charts script allows comparing bars of different symbols or different periods of the same symbol.
Attach the script to a chart and move bars or change the scale, all opened chart will move synchronously with the current one. The bars on different charts aligned to the border according to their open time.
The indicator has been designed for use on FORTS, but it can also work on other markets, at brokers broadcasting the required data.
A peculiarity of these data is that they cannot be requested from the broker's server as a section of history, but can only be obtained for the current moment.
The indicator periodically requests the broker, collects to a file and displays the following history from the stored file:
The weighted average price. The volume of buy orders. The volume of sel
Fast Copy MT5 allows you to copy trades between different MetaTrader 5 (netting)(hedge) and MetaTrader 4 accounts in any direction and amount, quickly and easily (without loading the system).
Any type of copying is available
MT4 → MT5 MT4 → MT4 MT5 → MT5 MT5 → MT4
* For the MetaTrader 4 terminal — Fast Copy MT4
* For the MetaTrader 5 terminal — Fast Copy MT5
** Before the purchase, you can test the program by downloading the free demo versions — Fast
Easy Order is an Expert Advisor allowing you to enter any type of trade with one click based on your RISK preferences.
You can choose to enter a trade and automatically calculate your lot size based on how much of your account you want to risk. Risk is calculated based on your Stop Loss placement. You can use a fixed lot size if you don't want to use risk based calculation of lot size. Your previous setting of risk based or fixed lot size remains saved for your next use of this Expert Advi
Stochastic oscillator with Singular Spectrum Analysis algorithms (SSA).
SSA is an effective method of treatment of non-stationary time series with unknown internal structure. It is used for the determination of the main components (trend, seasonal fluctuations and wave), smoothing and noise suppression. The method allows us to find previously unknown series periodicities and make forecasts on the basis of the detected periodic patterns.
The indicator signals are identical to the original signa
This trading panel has been developed for fast and comfortable operation of the financial markets. It is equipped with the necessary functions for manual and semi-automated trading. Due to the presence of the order trailing feature, trailing stop and automatic closure by equity, profit, time. You can use it to automate your trading system. All you have to do is open a position and set the parameters for maintenance, everything else will be handled by the EA. If you want to limit your losses, set
The Pz Oscillator is a very smooth and responsive accelerometer which provides a lot of useful information and detects divergences automatically. It is a great trading confirmation and can be used to identify the trend direction and strength. It has been designed as a complement for our trading tools.
The oscillator plots two moving averages to display the trend direction. If the fast moving average is above the slow moving average, the market is during an uptrend and long trad
The Expert Advisor for increasing (or opening) market positions.
Allows specifying the desired risk, target and searching for the best open price and trade volume.
It is included in the ActivePanel product.
The iTicksChart allows you to create custom tick charts. It is suitable not only for trading but also for analysis of tick history. Each missed or ambiguous tick is fixed and displayed on the chart. Experts, indicators, graphical objects can be used for technical analysis.
Advantages and Features
runs and works at any open chart window (called "base chart" further on in this document); looks like a common chart after launching (see Screenshots); history quality is monitored - each missed o
Scalper with Automatic Parameter Setting
Would you like to have an Expert Advisor that could automatically calculate trade parameters and adjust to the current market situation?
We present you our new development for the Forex market. This is a tick scalper for МТ4 and МТ5 - TickSniper.
Trading with it is fully automated. Forget continuous monitoring - this Expert Advisor trades independently. Its settings have been optimized over the course of testing on our real accounts.
The indicator has standard settings. The new modification of indicator provides special marking of the segment when the moving averages begin to form a cross in one direction or another. The Alligator`s cross indicates that the trend is about to change. Modified Alligator helps traders to determine a trend on a particular timeframe even if the averages are intertwined and have a shift in the future. Direction of a trend is determined by a cross of the averages with a specified marking area on th
Ermou Street rather than an expert or an indicator is a all-in-one trading assistant easing your trading sessions by providing signals and notifications. It's an assistant rather than a robot - "an assisted steering rather than an autopilot", and now, it autoadjusts itself to any instrument, any timeframe & any circumstance.
First, you should watch the video. Then here's some explanation:
By default, attaching Ermou Street to a chart, you’ll get:
A panel Signals: buy (default b
Just checking some systems about how they are re-acting for NFP:
Sergey Golubev, 2013.12.25 19:20
For MA Channel - look at those links :
I think - this system could not predict the price movement during NFP, but the movement after NFP was very predictable one: all 3 Stoch indicators were in below 20 level (in oversold condition), and the price on the main window was on the 4th (the last) MA level:
Sergey Golubev, 2016.01.09 13:06
Do you sell something on the Market? Are you signal provider? So, just some links about promotion:
Simon Gniadkowski, 2013.07.24 10:18
How to post code on this forum . . .
PriceChannel Parabolic system
Sergey Golubev, 2014.07.15 12:32
about how to post the charts from Charts section.
1. Click on this link :
2. After that - go to the post, place cursor on some place of the post, and press this button:
and the chart will be appeared on this 'some place'.
3. How to delete chart on the post (in case it is mistaken, or in any other reason)?
Press this button
and after that - use Backspace on keyboard to delete the chart/text.
Sergey Golubev, 2013.07.24 10:00
I just want to remind about how to insert the images to the post - read this small article
MQL5.community - User Memo :
All your texts in Forum, Articles and Code Base are edited in a single environment with a convenient and easy-to-use interface. Let us take a look at its capabilities.
The drop-down list where you can select one of the three
languages in which your message will be automatically translated by
the Google Translate service.
The button (Ctrl+Alt+L) is used for adding links into messages. The Link window appears as soon as you click this button (shown next).
In the Link field, you should specify the address of the link and then click the Insert button.
The button (Ctrl+Alt+I) is used for inserting pictures into messages. The Image window appears as soon as you click the button (shown next).
In the Upload image field, you should specify the picture file. To do it, click the Browse button that opens the standard window to choose files. Select the necessary file and click the Insert button to confirm the choice, or click the Cancel button to end without uploading a file. In the Title field, you can specify the comment that will be displayed as a pop-up help if you move the mouse cursor over the picture.
In HTML mode, it is prohibited to insert external links
to images (HTML tag "src"). It is also prohibited to insert text,
containing such images.
When you try to save text that contains external links to
images, such links will be automatically deleted. This is done to
ensure safety of MQL5.community members.
Just something to read during the weekend: On the Long Way to Be a Successful Trader - The Two Very First Steps
Sergey Golubev, 2016.01.16 16:23
SignalViewer - script for MetaTrader 4
SignalViewer is a nice script which can display on your chart all closed position of Signals provided by MQL5 Community Services website.
Sergey Golubev, 2013.07.15 21:19
Just good indicator found in Metatrader 5 CodeBase : GUPPY MULTIPLE MOVING AVERAGES :
These are two groups of exponential moving averages. The short term
group is a 3, 5, 8, 10, 12 and 15 day moving averages. This is a proxy
for the behaviour of short term traders and speculators in the market.
The long term group is made up of 30, 35, 40, 45, 50 and 60 day moving
averages. This is a proxy for the long term investors in the market.
The relationship within each of these groups tells us when there is
agreement on value - when they are close together - and when there is
disagreement on value - when they are well spaced apart.
The relationship between the two groups tells the trader about the
strength of the market action. A change in price direction that is well
supported by both short and long term investors signals a strong trading
opportunity. The crossover of the two groups of moving averages is not
as important as the relationship between them.
When both groups compress at the same time it alerts the trader to
increased price volatility and the potential for good trading
The Guppy Multiple Moving Average (GMMA) is an indicator that tracks the
inferred activity of the two major groups in the market. These are
investors and traders. Traders are always probing for a change in the
trend. In a downtrend they will take a trade in anticipation of a new up
trend developing. If it does not develop, then they get out of the
trade quickly. If the trend does change, then they stay with the trade,
but continue to use a short term management approach. No matter how long
the up trend remains in place, the trader is always alert for a
potential trend change. Often they use a volatility based indicator like
the count back line, or a short term 10 day moving average, to help
identify the exit conditions. The traders focus is on not losing money.
This means he avoids losing trading capital when the trade first starts,
and later he avoids losing too much of open profits as the trade moves
We track their inferred activity by using a group of short term moving
averages. These are 3, 5, 8, 10, 12 and 15 day exponentially calculated
moving averages. We select this combination because three days is about
half a trading week. Five days is one trading week. Eight days is about
a week and a half.
The traders always lead the change in trend. Their buying pushes prices
up in anticipation of a trend change. The only way the trend can
survive is if other buyers also come into the market. Strong trends are
supported by long term investors. These are the true gamblers in the
market because they tend to have a great deal of faith in their
analysis. They just know they are right, and it takes a lot to convince
them otherwise. When they buy a stock they invest money, their
emotions, their reputation and their ego. They simply do not like to
admit to a mistake. This may sound overstated, but think for a moment
about your investment in AMP or TLS. If purchased several years ago
these are both losing investments yet they remain in many portfolios and
perhaps in yours.
The investor takes more time to recognize the change in a trend. He
follows the lead set by traders. We track the investors inferred
activity by using a 30, 35, 40, 45, 50 and 60 day exponentially
calculated moving average. Each average is increased by one week. We
jump two weeks from 50 to 60 days in the final series because we
originally used the 60 day average as a check point.
This reflects the original development of this indicator where our focus
was on the way a moving average crossover delivered information about
agreement on value and price over multiple time frames. Over the years
we have moved beyond this interpretation and application of the
indicator. In the notes over the coming weeks we will show how this has
Our starting point was the lag that existed between the time of a
genuine trend break and the time that a moving average cross over entry
signal was generated. Our focus was on the change from a downtrend to
an up trend. Our preferred early warning tool was the straight edge
trend line which is simple to use and quite accurate. The problem with
using a single straight edge trend line was that some breakouts were
false. The straight edge trend line provided no way to separate the
false from the genuine.
On the other hand, the moving average crossover based on a 10 and 30 day
calculation, provided a higher level of certainty that the trend break
was genuine. However the disadvantage was that the crossover signal
might come many days after the initial trend break signal. This time lag
was further extended because the signal was based on end of day prices.
We see the exact cross over today, and if we were courageous, we could
enter tomorrow. Generally traders waited for another day to verify that
the crossover had actually taken place which delayed the entry until 2
days after the actual crossover. This time lag meant that price had
often moved up considerably by the time the trade was opened.
The standard solution called for a combination of short term moving
averages to move the crossover point further back in time so that it was
closer to the breakout signaled by a close above the straight edge
trend line. The drawback was that the shorter the moving average, the
less reliable it became. In plotting multiple moving averages on a
single chart display four significant features emerged.
These broad relationships, and the more advanced relationships used with
the GMMA are summarized in the chart. Over the following series of
articles we will examine the identification and application of each of
This is the most straightforward application of the GMMA and it worked
well with “V’ shaped trend changes. It was not about taking the lag out
of the moving average calculation. It is about validating a prior trend
break signal by examining the relationship between price and value. Once
the initial trend break signal is validated by the GMMA the trader is
able to enter a breakout trade with a higher level of confidence.
The CBA chart shows the classic application of the GMMA. We start with
the breakout above the straight edge trend line. The vertical line shows
the decision point on the day of the breakout. We need to be sure that
this breakout is for real and likely to continue upwards. After several
months in a downtrend the initial breakout sometimes fails and develops
as shown by the thick black line. This signals a change in the nature of
the trend line from a resistance function prior to the breakout to a
support function after the breakout.
The GMMA is used to assess the probability that the trend break shown by
the straight edge trend line is genuine. We start by observing the
activity of the short term group. This tells us how traders are
thinking. In area A we see a compression of the averages. This suggests
that traders have reached an agreement on price and value. The price of
CBA has been driven so low that many traders now believe it is worth
more than the current traded price. The only way they can take advantage
of this ‘cheap’ price is to buy stock. Unfortunately many other short
term traders have reached the same conclusion. They also want to buy at
this price. A bidding war erupts. Traders who believe they are missing
out on the opportunity outbid their competitors to ensure they get a
position in the stock at favorable prices.
The compression of these averages shows agreement about price and value.
The expansion of the group shows that traders are excited about the
future prospects of increased value even though prices are still rising.
These traders buy in anticipation of a trend change. They are probing
for a trend change.
We use the straight edge trend line to signal an increased probability
of a trend change. When this signal is generated we observe this change
in direction and separation in the short term group of averages. We know
traders believe this stock has a future. We want confirmation that the
long term investors are also buying this confidence.
The long term group of averages, at the decision point, is showing signs
of compression and the beginning of a change in direction. Notice how
quickly the compression starts and the decisive change in direction.
This is despite the longest average of 60 days which we would normally
expect to lag well behind any trend change. This compression in the long
term group is evidence of the synchronicity relationship that makes the
GMMA so useful.
This compression and change in direction tells us that there is an
increased probability that the change in trend direction is for real –
it is sustainable. This encourages us to buy the stock soon after the
decision point shown.
The GMMA picks up a seismic shift in the markets sentiment as it
happens, even though we are using a 60 day moving average.. Later we
will look at how this indicator is used to develop reliable advance
signals of this change. This compression and eventual crossover within
the long term group takes place in area B. The trend change is
confirmed. The agreement amongst investors about price and value cannot
last. Where there is agreement some people see opportunity. There are
many investors who will have missed out on joining the trend change
prior to area B. Now the change is confirmed they want to get part of
the action. Generally investors move larger funds than traders. Their
activity in the market has a larger impact.
The latecomers can only buy stock if they outbid their competitors. The
stronger the initial trend, the more pressure there is to get an early
position. This increased bidding supports the trend. This is shown by
the way the long term group continue to move up, and by the way the long
term group of averages separates. The wider the spread the more
powerful the underlying trend.
Even the traders retain faith in this tend change. The sell off that
takes place in area C is not very strong. The group of short term
averages dips towards the long term group and then bounces away quickly.
The long term group of averages show that investors take this
opportunity to buy stock at temporarily wakened prices. Although the
long term group falters out at this point, the degree of separation
remains relatively constant and this confirms the strength of the
The temporary collapse of the short term group comes after a 12%
appreciation in price. Short term traders exit the trade taking short
term profits at this level of return and this is reflected by the
compression and collapse of the short term group of averages. As long
term investors step into the market and buy CBA at these weakened
prices, traders sense that the trend is well supported. Their activity
takes off, and the short term group of averages rebounds, separates, and
then run parallel to the long term group as the trend continues.
The GMMA identifies a significant change in the markets opinion about
CBA. The compression of the short term and long term groups validates
the trend break signal generated by a close above the straight edge
trend line. Using this basic application of the GMMA, the trader has the
confidence necessary to buy CBA at, or just after the decision points
shown on the chart extract.
Using this straightforward application of the GMMA also kept traders out
of false breakouts. The straight edge trend line provides the first
indication that a downtrend may be turning to an up trend. The CSL chart
shows two examples of a false break from a straight edge trend line. We
start with decision point A. The steep downtrend is clearly broken by a
close above the trend line. If this is a genuine trend break then we
have the opportunity to get in early well before any moving average
This trend break collapses quickly. If we had first observed this chart
near decision point B then we may have chosen to plot the second trend
line as shown. This plot takes advantage of the information on the
chart. We know the first break was false, and by taking this into
account we set the second trend line plot. Can this trend break be
relied upon? If we are right we get to ride a new up trend. If we are
wrong we stand to lose money if we stay with a continuation of the
downtrend. The straight edge trend line by itself does not provide
enough information to make a good decision.
When we apply the GMMA we get a getter idea of the probability of the
trend line break actually being the start of a new up trend. The key
relationship is the level of separation in the long term group of
averages, and trend direction they are traveling. At both decision point
A and decision point B the long term group is well separated.
Investors do not like this stock. Every time there is a rise in prices
they take advantage of this to sell. Their selling overwhelms the market
and drives prices down so the downtrend continues.
The degree of separation between the two groups of moving averages also
makes it more difficult for either of the rallies to successfully change
the direction of the trend. The most likely outcome is a weak rally
followed by a collapse and continuation of the down trend. This
observation keeps the trader, and the investor, out of CSL.
Looking forward we do see a convergence between the short term group of
averages and the long term group of averages. Additionally the long term
group begins to narrow down, suggesting a developing level of
agreement about price and value amongst investors in April and May. In
late March the 10 day moving average closes above the 30 day moving
average, generating a classic moving average buy signal.