Changing color of candles on certain conditions

MQL5 지표 스크립트

작업 종료됨

실행 시간 29 분
피고용인의 피드백
Good luck in trading :)
고객의 피드백
Fast and good work !

명시

Hello,

I need a script, that changes the color of those candlesticks (body and wicks) in the main window, which comply with certain rules:

Input parameters:

x = ratio longer wick/body
y = ratio longer wick/shorter wick

color1 = color of candle, when rule part 1 is true
color2 = color of candle, when rule part 2 is true

(x and y should allow floating point values)

Rules:

IF  close - open > 0 THEN
IF (open - low) / (close - open) > x AND (open - low) / (high - close) > y
THEN color1

IF close - open < 0 THEN
IF (high - open) / (open - close) > x AND (high - open) / (close - low) > y
THEN color2

(Doji's will not be changed)

Thanks & best regards
Oliver

 

 

 

응답함

1
개발자 1
등급
(18)
프로젝트
37
43%
중재
6
17% / 50%
기한 초과
17
46%
무료
2
개발자 2
등급
(1235)
프로젝트
2820
80%
중재
156
22% / 43%
기한 초과
487
17%
무료
3
개발자 3
등급
(182)
프로젝트
342
42%
중재
118
12% / 73%
기한 초과
104
30%
무료
게재됨: 4 코드
4
개발자 4
등급
(72)
프로젝트
254
53%
중재
17
47% / 41%
기한 초과
83
33%
작업중
5
개발자 5
등급
(9)
프로젝트
18
22%
중재
3
67% / 33%
기한 초과
4
22%
무료
6
개발자 6
등급
(64)
프로젝트
144
46%
중재
19
42% / 16%
기한 초과
32
22%
작업중
7
개발자 7
등급
(82)
프로젝트
150
29%
중재
9
44% / 11%
기한 초과
46
31%
무료
8
개발자 8
등급
(20)
프로젝트
46
54%
중재
3
67% / 0%
기한 초과
14
30%
무료
9
개발자 9
등급
(564)
프로젝트
844
73%
중재
15
53% / 13%
기한 초과
193
23%
무료
10
개발자 10
등급
(44)
프로젝트
128
66%
중재
10
20% / 60%
기한 초과
35
27%
무료
11
개발자 11
등급
(845)
프로젝트
1447
72%
중재
119
29% / 47%
기한 초과
355
25%
작업중
게재됨: 3 기고글
12
개발자 12
등급
(63)
프로젝트
80
28%
중재
17
12% / 76%
기한 초과
48
60%
무료
13
개발자 13
등급
(493)
프로젝트
1022
58%
중재
30
27% / 23%
기한 초과
133
13%
작업중

프로젝트 정보

예산
50- USD