Changing color of candles on certain conditions

MQL5 Indicators Scripts

Job finished

Execution time 29 minutes
Feedback from employee
Good luck in trading :)
Feedback from customer
Fast and good work !

Specification

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

 

 

 

Responded

1
Developer 1
Rating
(18)
Projects
37
43%
Arbitration
6
17% / 50%
Overdue
17
46%
Free
2
Developer 2
Rating
(1235)
Projects
2820
80%
Arbitration
156
22% / 43%
Overdue
488
17%
Free
3
Developer 3
Rating
(182)
Projects
342
42%
Arbitration
118
12% / 73%
Overdue
104
30%
Free
4
Developer 4
Rating
(71)
Projects
254
53%
Arbitration
16
50% / 38%
Overdue
83
33%
Free
5
Developer 5
Rating
(9)
Projects
18
22%
Arbitration
3
67% / 33%
Overdue
4
22%
Free
6
Developer 6
Rating
(62)
Projects
140
46%
Arbitration
19
42% / 16%
Overdue
32
23%
Free
7
Developer 7
Rating
(82)
Projects
150
29%
Arbitration
9
44% / 11%
Overdue
46
31%
Free
8
Developer 8
Rating
(20)
Projects
46
54%
Arbitration
3
67% / 0%
Overdue
14
30%
Free
9
Developer 9
Rating
(550)
Projects
827
73%
Arbitration
15
53% / 13%
Overdue
193
23%
Working
10
Developer 10
Rating
(44)
Projects
128
66%
Arbitration
10
20% / 60%
Overdue
35
27%
Free
11
Developer 11
Rating
(807)
Projects
1382
72%
Arbitration
113
29% / 48%
Overdue
343
25%
Loaded
12
Developer 12
Rating
(63)
Projects
80
28%
Arbitration
17
12% / 76%
Overdue
48
60%
Free
13
Developer 13
Rating
(491)
Projects
1017
58%
Arbitration
29
28% / 24%
Overdue
132
13%
Free
Similar orders
I need an expert to decrypt my itf file using on prorealtime. I forgot my password, so I need to generate the source code. I need someone that can help me to derive source code from the itf file I have
I’m looking for someone experienced with Think or Swim to create a backtesting script for an in-the-money Iron Condor strategy using options on the SPX. The strategy involves setting up 10 contracts of an Iron Condor with a 10-point spread width and a net credit requirement of $11 per contract. The goal is to backtest the performance over the last three years, focusing on trades where the SPX closes outside a
I currently have a license code that connects to my web server, and I add the account number, client name, and expiration date. I’d like something more automated. Currently I allow clients 10 licenses, but adding for them on my side can get exhausting. I’d like a better solution for myself and clients

Project information

Budget
50- USD