Horizontal Line indicator - Custom

MQL4 指标 脚本

工作已完成

执行时间2 天

指定

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

 

 

反馈

1
开发者 1
等级
(624)
项目
981
47%
仲裁
32
38% / 34%
逾期
96
10%
工作中
发布者: 6 代码
2
开发者 2
等级
(107)
项目
149
36%
仲裁
29
3% / 55%
逾期
35
23%
空闲
3
开发者 3
等级
(103)
项目
205
41%
仲裁
17
29% / 71%
逾期
45
22%
空闲
4
开发者 4
等级
(1156)
项目
1462
63%
仲裁
21
57% / 10%
逾期
43
3%
空闲
5
开发者 5
等级
(772)
项目
1039
44%
仲裁
50
8% / 50%
逾期
116
11%
空闲
6
开发者 6
等级
(312)
项目
521
47%
仲裁
29
10% / 45%
逾期
139
27%
工作中
7
开发者 7
等级
(803)
项目
1123
43%
仲裁
47
49% / 23%
逾期
84
7%
空闲
8
开发者 8
等级
(41)
项目
72
8%
仲裁
18
11% / 56%
逾期
18
25%
空闲
9
开发者 9
等级
项目
1
0%
仲裁
0
逾期
1
100%
空闲

项目信息

预算
10 - 30 USD
截止日期
 1  7 天