Tâche terminée
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spécifications
the ea should perform the following action:
the current market price is 1.2200
open buy trade at x market price (can be selected in the settings) (example = 1.2210)
First example if market price goes up:
market price rises to = 1.2210
buy trade x lot opens (in the example at = 1.2210)
market price rises to = 1.2220
stoploss is set to = 1.2211 (1 pip above opening price / x pip can be selected in the settings)
No TP, the trade always closes at the stoploss mark and opens 1 pip above the closed trade
(in the example the buy trade opens again at = 1.2212
Second example if the market price goes down:
The buy trade immediately loses.
then the buy trade is closed immediately with a 1 pip loss
buy trade opens at = 1.2210
the market price goes short = 1.2209
the buy trade closes immediately
A new virtual pending order is set above market price, same price as last order = 1,2210