Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
I have a very good Support/Resistance Indicator which is developed from another developer. He has provided the mql4 code .
I need an EA (mql code too) based on the levels provided from this indi.EA must work on Tester too.Have a look at the photo attached and read below.
1.When *Market is ranging* - (Ranging.png) - TRUE/FALSE
Place buy limit orders at DS1/DS2. TP at DR1/DR2. SL at DS3 .
Place sell limit orders at DR1 and DR2. TP at DS1/DS2. SL at DR3.
Might happen that PENDING orders are not activated and values of DS1,DS2,DR1,DR2 change during time because new resistance/support are created. EA must delete those pending orders and create new ones with the new values .
Dont not open new orders for pairs that already have orders opened.
2.When market changes from *Market is ranging* ---> Market is moving down (down.png) : - TRUE/FALSE
Place sell limit orders at DP,DR1,DR2. TP must be selective if i want DS1,DS2 OR DS3. SL must be DR3 by default.
Situation :
Might happen that Sell Limits order are not activated and values of DP,DR1,DR2 change during time because new resistance/support are created. EA must delete those pending orders and create new ones with the new values of DP,DR1,DR2 and SL as the new DR3.
Dont not open new orders for pairs that already have orders opened.
3.When market changes from *Market is ranging* ---> Market is moving up (up.png) : TRUE/FALSE
Place buy limit order at DP,DS1,DS2. TP must be selective if i want DR1,DR2 OR DR3. SL must be DS3 by default.
Situation :
Might happen that Buy Limits order are not activated and values of DP,DS1,DS2 change during time because new resistance/support are created. EA must delete those pending orders and create new ones with the new values of DP,DS1,DS2 and SL as the new DS3.
Dont not open new orders for pairs that already have orders opened.
4.Close all orders if profit = X USD (for 1 pair) .
Close all orders if loss = Y USD (for 1 pair)
Close everything if basket profit (all pairs) = Z USD .