Download MetaTrader 5

Help me add another indicator to an existing robot!

2018.06.13 Experts

Job finished

Execution time 6 days

Specification

I want to add an additional indicator to a robot. I run a robot on one indicator which looks for oversold and overbought conditions. It then generates buy and sell signals based on a divergence in price with the indicator. I have attached a screenshot of the divergence indicator (Screenshot 1). When the indicator detects a positive divergence with price, it draws a green line and issues a buy signal. When the indicator detects a negative divergence with a price, it draws a red line and issues a sell signal. The arrows do not generate a signal but just highlight oversold and overbought conditions.

Screenshot 1


The robot takes a position on the divergence buy and sell signals. It takes an initial position and adds a second position if a second divergence signal is issued. It then takes profits at a set dollar amount for each position. The stop loss is added via inputs. This is basically a scalping strategy that takes lots of positions for small profits. 

However, the divergence indicator has a problem. It sometimes issues buy and sell signals when there is just a small divergence and price is not really stretched. See the attached screenshot (2). I am trying to avoid taking a position on these small divergences. 

Screenshot 2


To do this, I would like to add a second indicator called TD Sequential. This indicator registers a setup signal and then a Countdown buy or sell signal. The Setup portion counts from 1 to 9. After the Setup counts to 9, the Countdown starts counting from 1 to 13. The indicator plots a yellow arrow when the Countdown reached 13. 

I would like to add a buy or sell when the TD Sequential indicator reaches a 13. 

I want the robot to only take a long position when both of the indicators register a buy within 10 bars (or x number of bars). 

I also want the robot to only take a short position when both of the indicators register a sell (or x number of bars).

I have attached 2 more screenshots to show what I want to accomplish. On the third picture (screenshot3), the robot would issue a buy signal because of the Divergence Indicator and the TD Sequential indicator and issue Buy signals within 10 bars of each other. 

Screenshot 3


On the final picture (screenshot4), the robot would not issue a sell signal on the divergence indicator, because there is no additional TD Sequential sell signal within 10 bars. 

screenshot 4


I have the code for the divergence indicator, the TD Sequential indicator and the robot.

For the job at hand, I need the TD Sequential indicator to issue actual buy and sell signals and I need the robot to include that indicator. 

Thanks


Responded

1
Developer 1
2018.06.13
Rating
4.99
(439)
Projects
455
56%
Arbitration
12
17% / 50%
Overdue
241
53%
Working
2
Developer 2
2018.06.13
Rating
4.96
(1252)
Projects
1590
62%
Arbitration
48
40% / 15%
Overdue
479
30%
Loaded
3
Developer 3
2018.06.13
Rating
5
(4)
Projects
6
33%
Arbitration
1
0% / 0%
Overdue
3
50%
Working
4
Developer 4
2018.06.13
Rating
4.75
(16)
Projects
22
32%
Arbitration
5
20% / 20%
Overdue
4
18%
Working
5
Developer 5
2018.06.13
Rating
4.99
(154)
Projects
189
44%
Arbitration
7
14% / 14%
Overdue
75
40%
Working
6
Developer 6
2018.06.13
Rating
4.56
(25)
Projects
51
35%
Arbitration
17
6% / 65%
Overdue
33
65%
Free
7
Developer 7
2018.06.13
Rating
4.78
(103)
Projects
174
43%
Arbitration
61
26% / 39%
Overdue
89
51%
Busy
9
Developer 9
2018.06.13
Rating
4.94
(72)
Projects
78
56%
Arbitration
2
0% / 100%
Overdue
2
3%
Free
10
Developer 10
2018.06.13
Rating
4
(4)
Projects
5
0%
Arbitration
3
0% / 67%
Overdue
3
60%
Free
11
Developer 11
2018.06.13
Rating
5
(17)
Projects
21
57%
Arbitration
2
50% / 0%
Overdue
10
48%
Working
12
Developer 12
2018.06.13
Rating
4.97
(399)
Projects
484
58%
Arbitration
14
57% / 14%
Overdue
56
12%
Working
13
Developer 13
2018.06.13
Rating
4.8
(20)
Projects
35
26%
Arbitration
10
20% / 20%
Overdue
12
34%
Free
14
Developer 14
2018.06.13
Rating
4.97
(1118)
Projects
2129
85%
Arbitration
58
45% / 10%
Overdue
460
22%
Working
15
Developer 15
2018.06.13
Rating
0
Projects
0
0%
Arbitration
0
Overdue
0
Free
16
Developer 16
2018.06.13
Rating
4.92
(318)
Projects
500
52%
Arbitration
50
14% / 66%
Overdue
174
35%
Working
17
Developer 17
2018.06.13
Rating
4.91
(140)
Projects
233
61%
Arbitration
5
40% / 0%
Overdue
101
43%
Free

Project information

Budget
30 - 200 USD
Deadlines
from 2 to 10 day(s)