Centre of Gravity indicator alert and Consecutive candle

2019.03.22 Indicators

Specification

Platform(Mt5)
All chart times available on MT5
Outcome:MQL5 source code and Indicator with title COG


Section 1(consecutive candle count)-------------------------------------------------------------------------------------------------------------
If there are  4 or more consecutive candles (either bullish or bearish) send an alert/email with the number of candles consecutive at the close  of each candle from the the 4th one including the close price,asset,chart  timeframe. Reset the counter when an opposite candle closes after a consecutive streak.

Message Format examples
4th Bullish candle
Price:1.2391(Close price)
Chart:EUR/USD 5 min

Message Format 
5th Bullish candles
Price:1.2408(Close price)
Chart:EUR/USD 5 min
 and so on....

Message Format
4th Bearish candle
Price:110.600 (Close price)
Chart:USD/JPY 1 Hour

Message Format
5th Bearish candle
Price:110.590(Close price)
Chart:USD/JPY 1 Hour
 and so on....

---------------------------------------------------------------------

Section 2

Indicator:Centre of Gravity

1.When a bearish candle(1) closes under the sLow line(blue dashed line),regardless of whether it opened over or under the sLow line, and the next candle(2) opens under the sLow line. Send an email/alert with opening price of the candle(2) with the timeframe the alert/email appeared on.
Message format
COG Alert:
2019-09-02 09:03:12 GMT
Possible Strong BUY USDJPY @ 108.452
Chart:1 Hour

2.When a bearish candle(1) closes under the sLow line(blue dashed line),regardless of whether it opened over or under the sLow line, and the next candle(2)  also closes  bearish,that is lower than candle(1) under the sLow line then send an email/alert with closing price of the candle (2) with the timeframe the alert appeared on.
Message format
COG Alert:
2019-09-02 09:03:12 GMT
Definite Strong BUY USDJPY @ 108.452
Chart:30 min
------------------------------------------------------------------------------------------------
Sell conditions
1.When a bullish candle  close over  the sHigh line(yellow dashed line) and the next candle opens over the sHigh line. Send an email/alert with opening price of the new candle with the timeframe the alert appeared on.
Message  body format
COG Alert:
2019-09-02 09:03:12 GMT
Possible Sell GBPUSD @ 1.2340(close price)
Chart:15 min


2.When a bullish candle(1) closes over the sHigh line(yellow dashed line),regardless of whether it opened over or under the sHigh line, and the next candle(2)  also closes  bullish,that is higher than candle(1) over the sHigh line then send an email/alert with closing price of the candle (2) with the timeframe the alert appeared on.
Message format
COG Alert:
2019-09-02 09:03:12 GMT
Definite  Sell AUDJPY @ 80.125

Chart:30 min


Section 3 

When a candle touches the centre red line of the Centre of Gravity indicator send  a alert/email . The alert must only  come once  per candle ,when it is the  first time the candle touches the line.

Message Format

COG Alert

Centre line touched

Chart: GPBAUD 5min


Files:

Responded

1
Developer 1
2019.03.22
Rating
5
(7)
Projects
10
20%
Arbitration
3
0% / 100%
Overdue
2
20%
Free
2
Developer 2
2019.03.22
Rating
4.93
(268)
Projects
530
39%
Arbitration
31
16% / 68%
Overdue
111
21%
Working
3
Developer 3
2019.03.22
Rating
4
(2)
Projects
3
67%
Arbitration
0
Overdue
3
100%
Free
4
Developer 4
2019.03.22
Rating
0
Projects
1
0%
Arbitration
2
0% / 50%
Overdue
0
Working
5
Developer 5
2019.03.23
Rating
4.96
(283)
Projects
442
69%
Arbitration
26
27% / 58%
Overdue
35
8%
Working
6
Developer 6
2019.03.23
Rating
4.69
(162)
Projects
344
31%
Arbitration
138
19% / 52%
Overdue
123
36%
Loaded
7
Developer 7
2019.03.23
Rating
5
(4)
Projects
4
0%
Arbitration
0
Overdue
0
Free
8
Developer 8
2019.03.23
Rating
5
(3)
Projects
5
0%
Arbitration
0
Overdue
2
40%
Busy
9
Developer 9
2019.03.24
Rating
4.94
(218)
Projects
329
40%
Arbitration
25
24% / 44%
Overdue
36
11%
Working
10
Developer 10
2019.03.25
Rating
4.85
(55)
Projects
118
32%
Arbitration
6
17% / 67%
Overdue
28
24%
Free
11
Developer 11
2019.04.06
Rating
4.91
(340)
Projects
557
51%
Arbitration
101
36% / 42%
Overdue
137
25%
Loaded

Project information

Budget
50+ USD