Script to trail the breakeven

MQL4 Experts Scripts

Termos de Referência


i want a breakeven that work as trailing stop 
as example : i need to set a target profit and stop loss.
setting in the script:
- 1)At X pips in profit increment with Y lot position.
- 2)At X pips in profit increment with Y lot position.
- 3)At X pips in profit increment with Y lot position.                   
- 4)At X pips in profit increment with Y lot position.
- 5)At X pips in profit increment with Y lot position.
- 6)At X pips in profit increment with Y lot position.  

Draw a breakeven line and move stop loss to breakeven anytime we will increment lot position.

Example : buy with 300 target profit and 100 stop loss with 0,1 lot size.

-1)At 50 pips in profit increment buying again with +0,1 lot size .   In the meanwhile script will move stop loss to breakeve that is now at +25 of the initial trade.
-2)At +100 pips in profit increment buying again with 0.5 lot size . in the mean while script will move stop loss to breakeven again, calculating it.
-3)At +170 pips in profit increment buying again with 0.8 lot size.   in the mean while script will move stop loss to breakeven again, calculating it.
And so on...
I want to decide how many step to increment, with a maximum of 8 steps.
I want to test it  in backtest of metatrader.  

Respondido

1
Desenvolvedor 1
Classificação
(71)
Projetos
156
44%
Arbitragem
22
41% / 14%
Expirado
16
10%
Livre
Publicou: 10 códigos
2
Desenvolvedor 2
Classificação
(25)
Projetos
50
28%
Arbitragem
47
9% / 72%
Expirado
23
46%
Livre
3
Desenvolvedor 3
Classificação
(46)
Projetos
73
16%
Arbitragem
13
8% / 92%
Expirado
37
51%
Livre
4
Desenvolvedor 4
Classificação
(91)
Projetos
144
38%
Arbitragem
67
15% / 48%
Expirado
55
38%
Livre
5
Desenvolvedor 5
Classificação
(121)
Projetos
134
66%
Arbitragem
36
25% / 56%
Expirado
22
16%
Livre
Publicou: 10 códigos

Informações sobre o projeto

Orçamento
10 USD