Averaging Advisor for RSI Indicator

The signal for opening an order is the RSI intersection of the upper or lower level.

Levels are set in parameters.

extern ENUM_TIMEFRAMES timeframe_RSI = 60;
extern int period_RSI = 14;
extern int level_buy = 30;
extern int level_sell = 70;
extern int MinStep = 20;
extern double Lot = 0.1;
extern double K_Lot = 1.5;
extern int Takeprofit = 50;
extern int Magic = 0;
extern int DigitsLot = 2;
extern int slippage = 3;


If the indicator crosses the level level_buy = 30 from bottom to top, then the buy position is opened. If the price did not reach TP and a new buy signal arrived, the adviser checks the current price level and, if the price is lower on MinStep, it opens a second trade.

TP of both trades is averaged and set from the point of their total breakeven. The same happens with the positions for sale.

The parameters in the advisor must be selected for each tool separately. This is easiest to do in the terminal optimizer. If you have questions, ask.

Below is an example of the work of the adviser. EA RSI Averange hands first – opening the first position manually. The rest are already opened by the adviser.

Title: 2018-05-01_14-17-28.png Views: 3197 Size: 17.8 KB

Title: 2019-03-12_15-12-06.png Views: 80 Size: 15.0 KB


Click on image to enlarge Name: Snapshot.PNG Views: 58 Size: 20.9 KB ID: 2596734

paperclip Attachments

Please rate this Article

0 / 5 0 0

Your page rank:

Author: Forex Wiki Team
We are a team of highly experienced Forex Traders [2000-2023] whose only purpose in life is to live according to our own design and desire. For that, self-education and experience in Forex market was the only choice for all of us in order to achieve a self-sustainable.
Send this to a friend