Specification
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)
Responded
1
Rating
Projects
486
24%
Arbitration
59
54%
/
25%
Overdue
55
11%
Loaded
2
Rating
Projects
87
29%
Arbitration
24
13%
/
58%
Overdue
7
8%
Working
3
Rating
Projects
2914
63%
Arbitration
124
44%
/
25%
Overdue
429
15%
Loaded
4
Rating
Projects
19
16%
Arbitration
5
40%
/
40%
Overdue
0
Free
5
Rating
Projects
0
0%
Arbitration
5
0%
/
80%
Overdue
0
Free
6
Rating
Projects
1716
49%
Arbitration
52
71%
/
12%
Overdue
38
2%
Working
7
Rating
Projects
54
50%
Arbitration
6
83%
/
0%
Overdue
1
2%
Working
8
Rating
Projects
598
35%
Arbitration
64
20%
/
58%
Overdue
147
25%
Free
Published: 1 article, 22 codes
9
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
10
Rating
Projects
3369
68%
Arbitration
77
48%
/
14%
Overdue
342
10%
Free
Published: 1 code
11
Rating
Projects
648
33%
Arbitration
41
41%
/
46%
Overdue
11
2%
Busy
12
Rating
Projects
5
0%
Arbitration
2
50%
/
50%
Overdue
2
40%
Free
13
Rating
Projects
122
24%
Arbitration
21
29%
/
52%
Overdue
8
7%
Working
14
Rating
Projects
9
22%
Arbitration
0
Overdue
0
Free
15
Rating
Projects
243
20%
Arbitration
22
50%
/
18%
Overdue
0
Free
16
Rating
Projects
701
34%
Arbitration
34
71%
/
9%
Overdue
22
3%
Free
17
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Working
18
Rating
Projects
14
43%
Arbitration
0
Overdue
3
21%
Free
19
Rating
Projects
16
13%
Arbitration
4
50%
/
25%
Overdue
4
25%
Loaded
20
Rating
Projects
13
15%
Arbitration
13
23%
/
46%
Overdue
3
23%
Free
Published: 24 articles
21
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
22
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
23
Rating
Projects
553
50%
Arbitration
57
40%
/
37%
Overdue
227
41%
Working
24
Rating
Projects
257
53%
Arbitration
16
50%
/
38%
Overdue
83
32%
Free
25
Rating
Projects
2
50%
Arbitration
0
Overdue
0
Free
26
Rating
Projects
33
61%
Arbitration
1
100%
/
0%
Overdue
1
3%
Free
Published: 5 codes
27
Rating
Projects
8
0%
Arbitration
2
0%
/
50%
Overdue
1
13%
Working
28
Rating
Projects
0
0%
Arbitration
1
0%
/
100%
Overdue
0
Free
Published: 1 code
29
Rating
Projects
92
24%
Arbitration
8
75%
/
13%
Overdue
44
48%
Free
30
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Working
31
Rating
Projects
168
39%
Arbitration
10
40%
/
0%
Overdue
29
17%
Loaded
32
Rating
Projects
549
53%
Arbitration
13
69%
/
15%
Overdue
3
1%
Free
33
Rating
Projects
5
0%
Arbitration
2
0%
/
50%
Overdue
1
20%
Working
Project information
Budget
100 - 800 USD