指定
Need EA programmer to convert a pine script strategy to MQL5 and then make a code for trading robot based on it which can trade automatically on a 500usd account on xauusd micro account, with entry and exit based on my strategy on variable timeframes especially10 sec, 30 sec, 45 sec, 1 min, 2 min, 45min ,6hr. The strategy has to be backtested on heikin ashi candles only with my rules on above listed timeframe. Break even and trailing stops modules to be added. will need support from beginning till live deployment.
//@version=5
strategy("CCI + KC + BB Combo Strategy", overlay=true,
initial_capital=500,
default_qty_type=strategy.fixed
default_qty_value=0.01lot,
commission_type=strategy.commission.percent,
commission_value=0.01)
// ===== INPUTS =====
cciLength = input.int(100, "CCI Length")
cciMaLength = input.int(20, "CCI MA Length")
bbLength = input.int(20, "BB Length")
bbMult = input.float(2.0, "BB Multiplier")
kcLength = input.int(20, "KC Length")
kcMult = input.float(2.0, "KC Multiplier")
// ===== CCI =====
cci = ta.cci(hlc3, cciLength)
cciMA = ta.sma(cci, cciMaLength)
// ===== BOLLINGER BANDS =====
basis = ta.sma(close, bbLength)
dev = bbMult * ta.stdev(close, bbLength)
bbUpper = basis + dev
bbLower = basis - dev
// ===== KELTNER CHANNEL =====
emaKC = ta.ema(close, kcLength)
atrKC = ta.atr(kcLength)
kcUpper = emaKC + kcMult * atrKC
kcLower = emaKC - kcMult * atrKC
// ===== LONG CONDITIONS =====
longCond1 = ta.crossover(cci, cciMA)
longCond2 = kcUpper > bbUpper
longCond3 = ta.crossover(close, bbUpper)
longCondition = longCond1 and longCond2 and longCond3 and strategy.opentrades == 0
// ===== SHORT CONDITIONS =====
shortCond1 = ta.crossunder(cci, cciMA)
shortCond2 = kcLower < bbLower
shortCond3 = ta.crossunder(close, bbLower)
shortCondition = shortCond1 and shortCond2 and shortCond3 and strategy.opentrades == 0
// ===== ENTRIES =====
if longCondition
strategy.entry("Long", strategy.long)
label.new(bar_index, low, "🟢 Long", style=label.style_label_up, color=color.green)
if shortCondition
strategy.entry("Short", strategy.short)
label.new(bar_index, high, "🔴 Short", style=label.style_label_down, color=color.red, textcolor=color.white)
// ===== EXITS =====
exitLong = ta.crossunder(close, basis)
exitShort = ta.crossover(close, basis)
if exitLong
strategy.close("Long")
if exitShort
strategy.close("Short")
// ===== PLOTS =====
plot(bbUpper, "BB Upper", color=color.blue)
plot(bbLower, "BB Lower", color=color.blue)
plot(kcUpper, "KC Upper", color=color.orange)
plot(kcLower, "KC Lower", color=color.orange)
plot(cci, "CCI", color=color.green)
plot(cciMA, "CCI MA", color=color.red)
反馈
1
等级
项目
486
24%
仲裁
59
54%
/
25%
逾期
55
11%
已载入
2
等级
项目
87
29%
仲裁
24
13%
/
58%
逾期
7
8%
工作中
3
等级
项目
2914
63%
仲裁
124
44%
/
25%
逾期
429
15%
已载入
4
等级
项目
19
16%
仲裁
5
40%
/
40%
逾期
0
空闲
5
等级
项目
0
0%
仲裁
5
0%
/
80%
逾期
0
空闲
6
等级
项目
1716
49%
仲裁
52
71%
/
12%
逾期
38
2%
工作中
7
等级
项目
54
50%
仲裁
6
83%
/
0%
逾期
1
2%
工作中
8
等级
项目
598
35%
仲裁
64
20%
/
58%
逾期
147
25%
空闲
发布者: 1 文章, 22 代码
9
等级
项目
0
0%
仲裁
0
逾期
0
空闲
10
等级
项目
3369
68%
仲裁
77
48%
/
14%
逾期
342
10%
空闲
发布者: 1 代码
11
等级
项目
648
33%
仲裁
41
41%
/
46%
逾期
11
2%
繁忙
12
等级
项目
5
0%
仲裁
2
50%
/
50%
逾期
2
40%
空闲
13
等级
项目
122
24%
仲裁
21
29%
/
52%
逾期
8
7%
工作中
14
等级
项目
9
22%
仲裁
0
逾期
0
空闲
15
等级
项目
243
20%
仲裁
22
50%
/
18%
逾期
0
空闲
16
等级
项目
701
34%
仲裁
34
71%
/
9%
逾期
22
3%
空闲
17
等级
项目
0
0%
仲裁
0
逾期
0
工作中
18
等级
项目
14
43%
仲裁
0
逾期
3
21%
空闲
19
等级
项目
16
13%
仲裁
4
50%
/
25%
逾期
4
25%
已载入
20
等级
项目
13
15%
仲裁
13
23%
/
46%
逾期
3
23%
空闲
发布者: 24 文章
21
等级
项目
0
0%
仲裁
0
逾期
0
空闲
22
等级
项目
0
0%
仲裁
0
逾期
0
空闲
23
等级
项目
553
50%
仲裁
57
40%
/
37%
逾期
227
41%
工作中
24
等级
项目
257
53%
仲裁
16
50%
/
38%
逾期
83
32%
空闲
25
等级
项目
2
50%
仲裁
0
逾期
0
空闲
26
等级
项目
33
61%
仲裁
1
100%
/
0%
逾期
1
3%
空闲
发布者: 5 代码
27
等级
项目
8
0%
仲裁
2
0%
/
50%
逾期
1
13%
工作中
28
等级
项目
0
0%
仲裁
1
0%
/
100%
逾期
0
空闲
发布者: 1 代码
29
等级
项目
92
24%
仲裁
8
75%
/
13%
逾期
44
48%
空闲
30
等级
项目
0
0%
仲裁
0
逾期
0
工作中
31
等级
项目
168
39%
仲裁
10
40%
/
0%
逾期
29
17%
已载入
32
等级
项目
549
53%
仲裁
13
69%
/
15%
逾期
3
1%
空闲
33
等级
项目
5
0%
仲裁
2
0%
/
50%
逾期
1
20%
工作中
项目信息
预算
100 - 800 USD