Script to trail the breakeven

MQL4 전문가 스크립트

명시


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 코드
비슷한 주문
Job Description: We are looking for an experienced MQL5 developer to create a script or Expert Advisor (EA) that automatically updates the price of a token CFD on MT5, using a live BTCUSD feed. The goal is to make token fully CFD-tradable , with real-time price updates, charts, and client P/L. Clients should be able to trade long or short and view live candles, just like other MT5 CFDs. Scope of Work / Requirements

프로젝트 정보

예산
10 USD