Same consecutive candle colour recognition indicator

2019.05.15 Indicators

Job finished

Execution time 1 day
Feedback from customer
Excellent execution of request.
Feedback from employee
Excellent customer!

Specification

I need an indicator that will recognize if a specified number of consecutive candles are the same color and give me an alert if they are.

There will only be one input which will be the number of consecutive candles to monitor. Therefore, if I specify three candles, as soon as the last three completed candles are the same color. I should get an alert. The same is true for 4, 5, 6 etc candles as specified in the input.

To code this, you should use indexing from the current candle to make sure get the closing prices for the specified number of candles.

For example, if I specify 5 candles. the current open candle has an index of [0], the code should therefore check if the closing prices for candles of the indexes below are as per the condition below for a bullish alert:

[4] > [3] and [3] > [2] and [2] > [1] and [1] > [0]. 


the reverse is true for a bearish alert if 5 candles have been specified:

[4] < [3] and [3] < [2] and [2] < [1] and [1] < [0].

Also, an arrow should be printed if the candle in index [0], the current open candle closes whilst the condition is true. This arrow should be printed underneath the candle [0] which has just closed to become candle [1]

this computation should always be calculated from the current open candle.

I also need the indicator to print the total number of point moved by the consecutive candles from the opening of the first candle to the close of the last candle. this should be printed of the top right corner of the chart, this should be the most recent computation.

The indicator should work the same way for candles in every timeframe.

 


Files:

Responded

1
Developer 1
2019.05.15
Rating
4.89
(221)
Projects
319
48%
Arbitration
19
5% / 37%
Overdue
24
8%
Loaded
2
Developer 2
2019.05.15
Rating
4.94
(534)
Projects
947
76%
Arbitration
64
31% / 39%
Overdue
301
32%
Busy
3
Developer 3
2019.05.15
Rating
4.98
(106)
Projects
120
48%
Arbitration
13
8% / 46%
Overdue
4
3%
Free
4
Developer 4
2019.05.15
Rating
4.89
(495)
Projects
663
39%
Arbitration
29
7% / 59%
Overdue
108
16%
Busy
5
Developer 5
2019.05.15
Rating
4.87
(115)
Projects
183
25%
Arbitration
20
35% / 25%
Overdue
14
8%
Busy
6
Developer 6
2019.05.15
Rating
4.98
(528)
Projects
641
58%
Arbitration
14
57% / 14%
Overdue
40
6%
Working
7
Developer 7
2019.05.15
Rating
4.69
(162)
Projects
344
31%
Arbitration
138
19% / 52%
Overdue
123
36%
Loaded
8
Developer 8
2019.05.15
Rating
4.9
(341)
Projects
568
51%
Arbitration
114
41% / 39%
Overdue
137
24%
Loaded
9
Developer 9
2019.05.15
Rating
4.96
(288)
Projects
450
69%
Arbitration
26
31% / 58%
Overdue
35
8%
Free
10
Developer 10
2019.05.15
Rating
5
(3)
Projects
5
0%
Arbitration
2
0% / 50%
Overdue
2
40%
Loaded
11
Developer 11
2019.05.15
Rating
4.67
(6)
Projects
6
33%
Arbitration
0
Overdue
4
67%
Working
12
Developer 12
2019.05.15
Rating
5
(5)
Projects
5
20%
Arbitration
0
Overdue
0
Free

Project information

Budget
30+ USD
Deadlines
to 1 day(s)