Horizontal Line indicator - Custom

MQL4 Indicators Scripts

Job finished

Execution time 2 days

Specification

Requiring a custom indicator that paints a horizontal line for every candle close(in any timeframe) - have the option to show/hide in different timeframe for the lines drawn by the custom indicator!

 Requirement:

Upon candle close:

 - calculate that candle's [HIGH-LOW]/2 === VALUE X

 - calculate the range of [CLOSE-OPEN OR OPEN-CLOSE] depending on long/short candle ===== RANGE Y

IF(For that candle that just closed)

 VALUE X is within(OR equals) RANGE Y, then DRAW Horizontal Line with VALUE = X (make sure there is option for color selection for the line)

 ELSE

Do not draw that line.

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

 More complex criteria to add to the above:

there must be a validation check on existing horizontal lines drawn to "delete" itself IF the value of such lines falls within RANGE Y of new candle closed.

The existing line drawn can still stay if stays outside the range of RANGE Y, and create a "spike" on support/resistance

 

 

Responded

1
Developer 1
Rating
(624)
Projects
981
47%
Arbitration
32
38% / 34%
Overdue
96
10%
Working
Published: 6 codes
2
Developer 2
Rating
(107)
Projects
149
36%
Arbitration
29
3% / 55%
Overdue
35
23%
Free
3
Developer 3
Rating
(103)
Projects
205
41%
Arbitration
17
29% / 71%
Overdue
45
22%
Free
4
Developer 4
Rating
(1156)
Projects
1462
63%
Arbitration
21
57% / 10%
Overdue
43
3%
Free
5
Developer 5
Rating
(772)
Projects
1039
44%
Arbitration
50
8% / 50%
Overdue
116
11%
Free
6
Developer 6
Rating
(312)
Projects
521
47%
Arbitration
29
10% / 45%
Overdue
139
27%
Working
7
Developer 7
Rating
(803)
Projects
1123
43%
Arbitration
47
49% / 23%
Overdue
84
7%
Free
8
Developer 8
Rating
(41)
Projects
72
8%
Arbitration
18
11% / 56%
Overdue
18
25%
Free
9
Developer 9
Rating
Projects
1
0%
Arbitration
0
Overdue
1
100%
Free

Project information

Budget
10 - 30 USD
Deadline
from 1 to 7 day(s)