Trabalho concluído
Tempo de execução 3 dias
Comentário do cliente
Great work. Just in time as promised.
Comentário do desenvolvedor
He is a good and kind customer.
Termos de Referência
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.
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)Respondido
1
Classificação
Projetos
50
10%
Arbitragem
1
0%
/
0%
Expirado
8
16%
Livre
2
Classificação
Projetos
1463
72%
Arbitragem
122
29%
/
48%
Expirado
358
24%
Livre
Publicou: 3 artigos
3
Classificação
Projetos
178
39%
Arbitragem
4
25%
/
50%
Expirado
14
8%
Livre
4
Classificação
Projetos
19
11%
Arbitragem
1
0%
/
100%
Expirado
5
26%
Livre
5
Classificação
Projetos
543
75%
Arbitragem
9
44%
/
0%
Expirado
24
4%
Livre
6
Classificação
Projetos
316
34%
Arbitragem
63
37%
/
40%
Expirado
102
32%
Trabalhando
7
Classificação
Projetos
845
73%
Arbitragem
15
53%
/
13%
Expirado
193
23%
Livre
Informações sobre o projeto
Orçamento
60 - 80 USD
Prazo
para 5 dias