Changing color of candles on certain conditions

MQL5 Indicateurs Scripts

Tâche terminée

Temps d'exécution 29 minutes
Commentaires de l'employé
Good luck in trading :)
Commentaires du client
Fast and good work !

Spécifications

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

 

 

 

Répondu

1
Développeur 1
Évaluation
(18)
Projets
37
43%
Arbitrage
6
17% / 50%
En retard
17
46%
Gratuit
2
Développeur 2
Évaluation
(1235)
Projets
2820
80%
Arbitrage
156
22% / 43%
En retard
487
17%
Gratuit
3
Développeur 3
Évaluation
(182)
Projets
342
42%
Arbitrage
118
12% / 73%
En retard
104
30%
Gratuit
Publié : 4 codes
4
Développeur 4
Évaluation
(72)
Projets
254
53%
Arbitrage
17
47% / 41%
En retard
83
33%
Travail
5
Développeur 5
Évaluation
(9)
Projets
18
22%
Arbitrage
3
67% / 33%
En retard
4
22%
Gratuit
6
Développeur 6
Évaluation
(64)
Projets
144
46%
Arbitrage
19
42% / 16%
En retard
32
22%
Travail
7
Développeur 7
Évaluation
(82)
Projets
150
29%
Arbitrage
9
44% / 11%
En retard
46
31%
Gratuit
8
Développeur 8
Évaluation
(20)
Projets
46
54%
Arbitrage
3
67% / 0%
En retard
14
30%
Gratuit
9
Développeur 9
Évaluation
(564)
Projets
844
73%
Arbitrage
15
53% / 13%
En retard
193
23%
Gratuit
10
Développeur 10
Évaluation
(44)
Projets
128
66%
Arbitrage
10
20% / 60%
En retard
35
27%
Gratuit
11
Développeur 11
Évaluation
(845)
Projets
1447
72%
Arbitrage
119
29% / 47%
En retard
355
25%
Travail
Publié : 3 articles
12
Développeur 12
Évaluation
(63)
Projets
80
28%
Arbitrage
17
12% / 76%
En retard
48
60%
Gratuit
13
Développeur 13
Évaluation
(493)
Projets
1022
58%
Arbitrage
30
27% / 23%
En retard
133
13%
Travail

Informations sur le projet

Budget
50- USD