Averaging Advisor for RSI Indicator

0
(0)

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;


Example

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

attachment2618579

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

paperclip
 Attachments

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?



Author: Forex Wiki Team
We are a team of highly experienced Forex Traders [2000-2023] who are dedicated to living life on our own terms. Our primary objective is to attain financial independence and freedom, and we have pursued self-education and gained extensive experience in the Forex market as our means to achieve a self-sustainable lifestyle.