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 codes
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 codes

プロジェクト情報

予算
10 USD