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%
逾期
488
17%
空闲
3
开发者 3
等级
(182)
项目
342
42%
仲裁
118
12% / 73%
逾期
104
30%
空闲
4
开发者 4
等级
(71)
项目
254
53%
仲裁
16
50% / 38%
逾期
83
33%
空闲
5
开发者 5
等级
(9)
项目
18
22%
仲裁
3
67% / 33%
逾期
4
22%
空闲
6
开发者 6
等级
(62)
项目
140
46%
仲裁
19
42% / 16%
逾期
32
23%
空闲
7
开发者 7
等级
(82)
项目
150
29%
仲裁
9
44% / 11%
逾期
46
31%
空闲
8
开发者 8
等级
(20)
项目
46
54%
仲裁
3
67% / 0%
逾期
14
30%
空闲
9
开发者 9
等级
(550)
项目
827
73%
仲裁
15
53% / 13%
逾期
193
23%
工作中
10
开发者 10
等级
(44)
项目
128
66%
仲裁
10
20% / 60%
逾期
35
27%
空闲
11
开发者 11
等级
(807)
项目
1382
72%
仲裁
113
29% / 48%
逾期
343
25%
已载入
12
开发者 12
等级
(63)
项目
80
28%
仲裁
17
12% / 76%
逾期
48
60%
空闲
13
开发者 13
等级
(491)
项目
1017
58%
仲裁
29
28% / 24%
逾期
132
13%
空闲
相似订单
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

项目信息

预算
50- USD