Pine Code into the MQL4

MQL4 In conversione

Lavoro terminato

Tempo di esecuzione 3 giorni
Feedback del cliente
Great work. Just in time as promised.
Feedback del dipendente
He is a good and kind customer.

Specifiche

I want to use the pine code below as an MT4 or MT5 EA. Additioanly I need alerts when enter a trade . When close long open short and same for the reverse. Just like in the pine strategy tester area it should be always in a trade. 
I am aware of the feed changes can effect the entry and exit points but the code should work with same consistancy on Metatrader. Thanks in advance.
strategy("Forex Capraz", overlay=true)

fark = input(title="pip farkı", type=input.integer, defval=320)
length = input(title="ATR Period", type=input.integer, defval=22)
mult = input(title="ATR Multiplier", type=input.float, step=0.1, defval=3.0)
wicks = input(title="Take Wicks into Account ?", type=input.bool, defval=false)
showLabels = input(title="Show Buy/Sell Labels ?", type=input.bool, defval=true)
highlightState = input(title="Highlight State ?", type=input.bool, defval=true)

atr = mult * atr(length) 

longStop = hl2 - atr
longStopPrev = nz(longStop[1], longStop)
longStop := (wicks ? low[1] : close[1]) > longStopPrev ? max(longStop, longStopPrev) : longStop
longStop2 = longStop + (fark * syminfo.mintick)


shortStop = hl2 + atr 
shortStopPrev = nz(shortStop[1], shortStop)
shortStop := (wicks ? high[1] : close[1]) < shortStopPrev ? min(shortStop, shortStopPrev) : shortStop
shortStop2 = shortStop - (fark* syminfo.mintick)
dir = 1
dir := nz(dir[1], dir)
dir := dir == -1 and (wicks ? high : close) > shortStopPrev ? 1 : dir == 1 and (wicks ? low : close) < longStopPrev ? -1 : dir

longColor = color.green
shortColor = color.red
noneColor = color.new(color.white, 100)


strategy.entry(id="long",long =true, limit= shortStop2)
strategy.entry(id="short",long=false , limit = longStop2)

Con risposta

1
Sviluppatore 1
Valutazioni
(38)
Progetti
50
10%
Arbitraggio
1
0% / 0%
In ritardo
8
16%
Gratuito
2
Sviluppatore 2
Valutazioni
(851)
Progetti
1463
72%
Arbitraggio
122
29% / 48%
In ritardo
358
24%
Gratuito
Pubblicati: 3 articoli
3
Sviluppatore 3
Valutazioni
(132)
Progetti
178
39%
Arbitraggio
4
25% / 50%
In ritardo
14
8%
Gratuito
4
Sviluppatore 4
Valutazioni
(14)
Progetti
19
11%
Arbitraggio
1
0% / 100%
In ritardo
5
26%
Gratuito
5
Sviluppatore 5
Valutazioni
(412)
Progetti
543
75%
Arbitraggio
9
44% / 0%
In ritardo
24
4%
Gratuito
6
Sviluppatore 6
Valutazioni
(214)
Progetti
316
34%
Arbitraggio
63
37% / 40%
In ritardo
102
32%
In elaborazione
7
Sviluppatore 7
Valutazioni
(564)
Progetti
845
73%
Arbitraggio
15
53% / 13%
In ritardo
193
23%
Gratuito

Informazioni sul progetto

Budget
60 - 80 USD
Scadenze
a 5 giorno(i)