Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
I need an expert advisor to manage trades. The EA should NEVER open a position.
The EA will use ichimoku to exit trades.
For long trades, EA will close position if price close below cloud
For short trades, EA will close position if price close above cloud
The EA will lock profits after Breakeven profit is reached
The EA will activate after X number of pips in profit.
Mandatory input parameters:
General Settings
Breakeven pips
Lock-in pips
Profit pips to activate Ichimoku exit
Ichimoku Settings
Tenkan-sen
Kijun-sen
Senkou Span B
Example settings
Breakeven pips: 20
Lock-in pips: 2
Profit pips to activate Ichimoku exit: 30
First example
Long EU at 1. 3
Price went up to 1.3020
EA will lock in 2 pips (1.3002)
Price went down to 1.3005 and close below cloud (At this point EA will not close trade because Profit pips to activate Ichimoku exit did not reached 30 pips)
Price went down further to 1.3002, EA closes the position at +2 pips
Second example
Long EU at 1. 3
Price went up to 1.3050
EA will lock in 2 pips (1.3002)
Price went down to 1.3030 and close below cloud (At this point EA will close trade because Profit pips to activate Ichimoku exit is greater than or equal to 30 pips profit)
Third example
Short EU at 1. 3
Price went down to 1.2980
EA will lock in 2 pips (1.2998)
Price went up to 1.2995 and close above cloud (At this point EA will not close trade because Profit pips to activate Ichimoku exit did not reached 30 pips)
Price went up further to 1.2998, EA closes the position at +2 pips
Fourth example
Short EU at 1. 3
Price went down to 1.2950
EA will lock in 2 pips (1.2998)
Price went up to 1. 2990 and close above cloud (At this point EA will close trade because Profit pips to activate Ichimoku exit is greater than or equal to 30 pips profit)
Testing will be done on a demo account. If the EA works as outlined above, work will be accepted.
The EA should work on any chart (Standard, Renko, Range bars)
The EA should work on ECN and Non-ECN brokers.