Automated Trading

  • A detailed check of the efficiency of the investigated trading tactics in the MetaTrader 4 (MT4) strategy tester requires the quotation history of a particular trading instrument. The deeper and more complete is the quotes history, the more market situations can be simulated. The available history depth in MT4 is measured in candles (bars). By default, the number of available history bars in the terminal is set to 512 000 (main menu "Tools" -> "Settings", "Charts" tab), and the maximum number, visible in the window, is 65 000 (see Fig. 1). Fig. 1. MetaTrader 4 terminal settings. This amount of history is sufficient if we are talking about large timeframes: monthly, weekly and daily. The lack of data will be felt particularly strongly...

    Читать далее »
  • The magazine publishes numerous reviews of expert advisors and their performance: some are more successful, while others are immediately considered unprofitable, which is also a result in itself. But the efficiency of an Expert Advisor, when examined thoroughly, is a complex result of: 1) the trading strategy used (the algorithm for generating the opening-closing signals); 2) the money management techniques applied (the algorithm for managing the lot size); 3) the program, written in MQL, which is exactly as described in the first two points (presence of logical errors) and that it contains no unintended side effects. For the first two points much has been written, and now I'd like to dwell on some delicate issues of MQL usage, that haven't found any reflection or mentioning in MQL descriptions...

    Читать далее »
  • Returning to Puria

    The trading advisor Puria is well known among traders. The algorithm of the Expert Advisor is widely described on the Internet. The original description of the working principle of the Expert Advisor was as follows: Indicators used: 1. Moving Average MA (85), Linear Weighted applied to Low, red; 2. Moving Average MA (75), Linear Weighted applied to Low, red; 3. Moving Average EMA (5), applied to Close, yellow; 4. MACD Indicator (15, 26, 1). Entry into the market to sell: yellow moving average crosses 2 red ones from top to bottom, MACD confirms the signal if it is below zero. Buy entry: yellow MA crosses both red ones downwards, MACD confirms the signal if it is below zero...

    Читать далее »
  • In this issue we will consider a strategy based on four indicators, standard for MetaTrader 4 trading terminal and popular among traders: Moving Average, CCI, RSI and Parabolic SAR. The algorithm of the trading strategy is described in details on the website of the magazine, so we would like to share the results of the tactics automation. BeeJay Trading Strategy Rules To begin with, let us briefly outline the trading rules for the chosen strategy. To begin with, we will set the indicators on the working chart. We will need: - Exponential Moving Average EMA (8) - color blue, apply to close; - Simple Moving Average SMA (26) - color orange, apply to close; - Commodity Channel Index indicator - CCI...

    Читать далее »
  • In recent times, advisors that trade in conjunction with a certain time of day or day of the week have begun to appear and to be discussed. For example: allow (disallow) to the Expert Advisor operations with orders linked to the time of the end of the Asian trading sessions. Tying the time of exchange sessions to the trading strategy of a robot-advisor may appear a very promising "fresh stream" in the technique of programming trading robots, but... Being a person actively involved in experiments with trading programs, I wondered beforehand: "And what time we see under quotation curves and what time should the Expert Advisor be bound to? Some answers to this question seemed to me so curious that I decided to draw everyone's attention to them...

    Читать далее »
  • As it turned out, the trading robot was unable to perform trading operations during the whole month. It happened because of a fairly trivial error: The terminal settings did not allow the Expert Advisor to perform trade operations. For the sake of purity of the experiment I didn't even look at the server to see what was going on. And it played a cruel joke. However, it does not prevent me from making some amendments in the Expert Advisor's code. This time let's take a look at the risks. Supplement №1: I am a supporter of very conservative trading systems where deals are kept open for many months and risks are strictly controlled. In the case of this trading robot, we have a completely different picture. Trading Expert Advisor makes trades,...

    Читать далее »
  • In the New Year issue of ForTrader.ru we offer you a trading strategy for , which works on the crossing of several moving averages, filtered by the popular MACD indicator. The trading strategy was proposed to us by the forum member machzelet. It would seem that all trading strategies based on moving averages and MACD crossover have been already tried and not all of them give at least good results. However, we will try to do some research in the hope that even "an unloaded shotgun will ever fire". Since the trading strategy uses averaging indicators, we select highly volatile currency pairs for trading in order to avoid flat movements. Let us select EURUSD for investigation. We take an intraday time frame.

    Читать далее »
  • This article is a continuation of a previously started cycle about creating a trading Expert Advisor (see issues 61 and 63 of ForTrader.org). Unfortunately, both for me and for many readers, the work in this direction was suspended for several months. There were many reasons for that, but the main thing is that I'm going back to this work. The results of the work That short period of testing, which took place, was able to demonstrate some vitality of the idea. The profit was not much, but more importantly, there was no loss. In this article, I will try to take some actions to improve the performance of the program. But first I will try to clarify some obscure...

    Читать далее »
  • Hello, dear readers. In this issue we will consider the trading strategy proposed on FXGeneral forum. This system does not use any indicators for getting signals to open trades, i.e. the trading system under study is based only on the price. Trading system rules If we see a number of bullish candlesticks on the chart, coming one after another, specified in the settings, we open two purchases at the market. For both orders, we set a Stop Loss on the basis of the volatility of the last 20 bars, multiplied by a certain coefficient. We set TakeProfit for the first trade and use only Trailing Stop in the price channel for the second one. The deal is opened with a fixed percentage of the deposit (see Fig. 1). Fig. 1. Example...

    Читать далее »
  • In this issue we will look at the trading strategy based on fractals, proposed by Iho de Puta, a member of the traders forum. The author did not tell us how successful this tactic is in manual trading. However, the fact that it uses the indicators Moving Averages, Stochastic and fractals, popular among traders, has aroused interest. Let's see how successful this trading strategy is. Rules of work on the trading strategy Used indicators (standard for the MetaTrader4 terminal): 1. Simple Moving Averages (8, 16, 32); 2. Slow Stochastic (32, 16, 8); 3. Fractals. Recommended currency pairs: EUR/USD, USD/CHF, GBP/USD, USD/JPY. Rules for opening a Buy deal:...

    Читать далее »
  • Hello, dear readers. In this issue we will consider a trading system, proposed for free automation by the user of FXGeneral forum - droba, which is interesting because it uses only one technical indicator - WATR, which is a kind of channel. Let's take a brief look at the rules of this trading system. For example, we will use opening a Buy trade. Sells are opened exactly the opposite. 1. If a bar has closed above the upper line of the WATR indicator, at the opening of the next bar we make three buy orders in the market. 2. Stop Loss for all orders is set at the level of the opposite line. 3. TakeProfit for the first order is set on a level "the bottom line...

    Читать далее »
  • After reviewing the Fan indicator only superficially in the last issue, it is impossible to make definitive conclusions about it - there is too little data. I suggest to find out if it is really unique. Let's compare Fan v1.0 with the standard MetaTrader 4 indicators which are similar to it in their functionality, in particular with MACD indicators and moving averages. The simplest and immediately noticeable signal to open the Fan indicator is its crossing of the zero line. Let's see how well it works in comparison to its counterparts (see fig. 1). Fig. 1. Comparison of the Fan indicator with EMA 200 and MACD (50, 100, 1). How is it possible...

    Читать далее »
  • At the request of forum member apelsinder we implemented a trading advisor based on the proposed RSIOMA indicator. Since the main focus is on the indicator, the rules of the strategy are very simple. Algorithm The buy signal is triggered when the blue RSIOMA line crosses the red one from bottom to top. Closing the purchase and sale is made when the lines are crossed inversely. That is all. The author of the topic proposes to work on the 15-30-minute charts for the currency pairs GBPUSD or GBPJPY. Trailing Stop is set at 20 points from the price (see Fig. 2). Fig. 1. Working on the basis of the RSIOMA indicator Testing the trading strategy Standard rules for the advisor are simple, but usually they do not show the proper result....

    Читать далее »
  • In the previous issue, we investigated the first method of working with the "Maximum Deviation from Moving Average" strategy and recall that it gave excellent results. In this issue, we will continue to investigate the proposed strategy, namely we will test the second method of determining the maximum deviation from the moving average. Let's recap a little bit about the essence of the tactic. "The idea of the trading strategy proposed for consideration is based on the concept of market cyclicity: we know that the price cannot rise or fall forever, there always comes a turning point, especially if we are talking about volatile pairs and low timeframes. We will take the historical data for a certain period of time, for example a month, and look at how many pips the price deviated maximally...

    Читать далее »
  • Hello, dear readers. In this issue of the magazine, we will look at the "Universal Forex Strategy". This system is based on three indicators, is quite simple to use, but at the same time with a twist, so it will suit both a beginner trader and a long time practitioner as a supplement. The signals of the universal Forex strategy are based on three indicators: moving average EMA with a period of 300, Nonlagdot and Supertrend. Exponential moving average with a period of 300 (EMA (300)) allows us to determine the direction of the trend, in the direction of this average we will open transactions. The other two indicators are used to open trades and filter each other's signals. Trades according to this strategy are opened only...

    Читать далее »
  • This article is a continuation of the "Creating a trading robot: from A to Z" series started in issue 61 of ForTrader.org. It is assumed that at this stage the reader is already familiar with the trading system that we are transforming into a robot, so in this article we will consider the initial phase of writing the Expert Advisor. This version of the robot will be somewhat simplified in order to facilitate understanding of the source code. Logic modules of a trading robot In order to implement a trading robot, you should first define which logic modules it should be composed of. Detecting Trading Signals Module The purpose of this module is to find a trading instrument for which there is a signal at the moment. The module will determine the signal for each specific...

    Читать далее »
  • Traveling through the Internet I came across a very interesting indicator "Fan v1.0" for MetaTrader4 trading platform. According to the creator of the indicator, it is based on the Fibonacci Fan. If you look at the chart with this indicator (see fig. 1), there are two possible reactions to what you see: "Wow, that's great!" or "How to interpret it?". Let's see how to deal with this beauty. The author of the indicator makes an explanation: - When the color Lime - the fan is open and expanding. - When the color Green, the fan is open and contracted. - In Yellow - the fan is intertwined and expands. - When the color Orange, the fan is intertwined and narrowed. So, empirically...

    Читать далее »
  • Hello, dear readers. It's no secret that many of us trade intraday. And for some, the main timeframe is "hourly". It is for this period that the Forex trading strategy "Method of 4 Indicators" was prepared. The rules of the system are not complicated and will suit both professional traders and beginners. Trading system rules So, put on the chart of the selected currency pair, which can be absolutely any indicator Forex: 1) exponential moving average EMA with a period of 7, select a blue color; 2) exponential moving average EMA with a period of 21, select a red color; 3) ADX indicator (14); 4) MACD indicator (12, 26, 9), better fit MACD-combo. Set the stopLoss for the local...

    Читать далее »
  • In the next issue we will consider a trading strategy based on the ZigZag indicator, which is popular among traders. The tactics uses an unusual feature of this indicator redrawing, that is the factor which in 99% cases makes speculators refuse from the indicator. We will try to turn this disadvantage into an advantage. The rules of the strategy were provided by the member of traders forum andrewx3. So, the system we are considering is based on three indicators: 1. ZigZag_Pointer_alert - the indicator that tracks the depth of the market, its bottoms and tops. It is one of the main indicators of the system. It is by its signals that we are looking for opportunities to enter the market. 1. nonlagzigzag_v2 - indicator, which outlines the current prices High and Low. 2. ...

    Читать далее »
  • Hello, dear readers. In this issue we will look at a simple system based on Bill Williams' famous Alligator indicator. The rules of the system are as follows: 1. A buy order is placed at the opening if the previous bar has closed above all three Alligator lines. Exit a position - closing the bar below the Alligator's teeth line (the red line). 2. Sell order is placed at opening if the previous bar closed below all Alligator lines. Exit the market - the bar closed above the "Alligator's Teeth" line. 3. Stop Loss is fixed and set in the settings of the Expert Advisor. 4. Profit can be set by Trailing Stop, if desired. Testing of the strategy The rules of the strategy are not complicated, most often used by...

    Читать далее »
Back to top button