• Overview
  • Reviews
  • Comments (3)
  • What's new

Dual Raff Channel

The robot is designed for trading on a real account. It draws two Hilbert Raff channels. The outer channel allows determining the direction of the global trend. In another channel, which is inside it, trend following trades are performed. You can optionally use the martingale strategy and the money management system, all trades are protected with Stop Loss.

Trading strategy characteristics

The robot calculates two channels by the method of Hilbert Raff. These channels cover different periods and reflect the global and the local trend. The most effective way to trade is when the directions of identified trends coincide. The EA enters the market and take profit near the borders of the internal channel. Positions are only opened in the trend direction, which is determined by the outer channel. So the EA tries to close most positions with a profit. Losing positions are averaged using additional deals, which are calculated so that their aggregate sum could also be closed with profit. As the deposit grows, the money management is applied to increase the volume of trades to match returns and risk with available funds. Robot testing and use are demonstrated in the video.


During testing at the interval from January 2015 to April 2018, using EURUSD, GBPUSD and XAGUSD data on the H1 timeframe and the initial deposit of 1000$, the EA with default settings managed to reach the profit value of $1928-3873 with the spread of 10-20. During testing on XAUUSD with optimized parameters (set files on the Comments page), on the same period and timeframe, with the spread of 200 the robot managed to earn $2061.

Recommendations on Usage

No indicators are required for the EA operation. All necessary algorithms are contained in a single EA file. To control the EA operation, you can additionally use indicator Raff Channel indicator, which displays the Raff channel. The indicator can be launched in the chart where the EA is running. Two indicators are attached on one chart, their parameters should be equal to the ones used in the EA.

By changing the switching the Open counter positions parameter, you can enable or disable setting opposite positions when opposite position entry criteria are met. If you allow opposite positions, the total number of trading cycles will be increased.

The robot is easily optimizable for other currency pairs and timeframes.

I will provide the product buyers with the optimization specifics in a personal message.

Program Parameters

Most Relevant Parameters

  • Language - the language of the EA's messages (Eng, Rus);
  • Magic - order magic number;
  • Open counter positions - open opposite positions (Yes, No);
  • Number of bars - the number of bars used for calculating the outer and the internal channels;
  • Coefficient of the channel width - coefficient for the width of the internal and outer channels;
  • Entry criteria - distance to the trend line (% of the channel width) to enter/exit a trade;
  • Gradient criteria - gradient of the internal channel, with which trades are allowed;
  • Offset for determining Gradient criteria - offset value for calculating the gradient;
  • Distance to safety levels - distance in points.

Averaging parameters

  • Use martingale - enable the martingale function (Yes, No);
  • Step of averaging positions - step of averaging in points;
  • Lot increase coefficient - lot increase ratio;
  • Maximum number of steps for averaging positions - the maximum number of averaging step (if exceeded, close all);
  • Coefficient of stop - the proportion of the averaging step, 0.1... 1;
  • Specified profit with averaging - preset averaging profit, $ per 0.01 lot.

Extra parameters

  • Clearance - gap above distinctive spots (points);
  • Use money management - Yes, No.
  • Initial lot - initial lot.

The robot can be used on 5- and 4-digit quotes. The number of digits in quotes is defined automatically. All parameters specified in points should always be set for 5-digit quotes (set by default).

For any questions, private message me. I will be glad to help you.
No reviews
Version 1.4 2018.06.13
Added push notifications about order opening.
Version 1.3 2018.05.29
Refined the conditions for entering the market. Fixed the errors related to setting the safety target levels.