Script to trail the breakeven

Техническое задание


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.  

Откликнулись

1
Разработчик 1
Оценка
(71)
Проекты
156
44%
Арбитраж
22
41% / 14%
Просрочено
16
10%
Свободен
Опубликовал: 10 примеров
2
Разработчик 2
Оценка
(25)
Проекты
50
28%
Арбитраж
47
9% / 72%
Просрочено
23
46%
Свободен
3
Разработчик 3
Оценка
(46)
Проекты
73
16%
Арбитраж
13
8% / 92%
Просрочено
37
51%
Свободен
4
Разработчик 4
Оценка
(91)
Проекты
144
38%
Арбитраж
67
15% / 48%
Просрочено
55
38%
Свободен
5
Разработчик 5
Оценка
(121)
Проекты
134
66%
Арбитраж
36
25% / 56%
Просрочено
22
16%
Свободен
Опубликовал: 10 примеров

Информация о проекте

Бюджет
10 USD