Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
I need an EA that will open and close trades, based on an indicator. The EA will also manages those trades by moving Stop Loss on specifics levels.
The way it works:
When my indicator (attached) shows a change of trend, the EA will open a first trade. When that trade is open, the EA will install an initial stop loss. When the market moves in a profitable way, the EA will move the stop loss at specifics levels. If the stop loss was not triggered and the indicator shows a change of trend, the EA will close the first trade and open a new one in the new direction. If a stop loss was triggered, then the EA will wait to open a new trade until the indicator shows a new change of trend. I attached a picture that gives an idea when to open and close positions.
The inputs shall be:
- Lot_size: This is the size of the lots the EA will open
- Fisher_periode: Indicator variable
- Fisher_bar_count: Indicator variable
- Initial_stop : This is the initial stop loss, in pips. The number represents the number of pips from entry.
- First_Stop_Target: This is the amount in pips the trade moves before the stop loss is moved to the ''First_Stop'' level.
- First_Stop: This will move the stop loss when a target, in pips, is reached. The number represents the number of pips from entry and can be postive or negative.
- Second_Stop_Target: This is the amount in pips the trade moves before the stop loss is moved to the ''Second_Stop'' level.
- Second_Stop: This will move the stop loss when a target, in pips, is reached. The number represents the number of pips from entry and can be postive or negative.
- Third_Stop_Target: This is the amount in pips the trade moves before the stop loss is moved to the ''Third_Stop'' level.
- Third_Stop: This will move the stop loss when a target, in pips, is reached. The number represents the number of pips from entry and can be postive or negative.
- Fourth_Stop_Target: This is the amount in pips the trade moves before the stop loss is moved to the ''Fourth_Stop'' level.
- Fourth_Stop: This will move the stop loss when a target, in pips, is reached. The number represents the number of pips from entry and can be postive or negative.
Thank you.