Help, Delete Stop Loss SL
-
Hello Admin,
I have a problem, I have to make sure that if the spread exceeds a certain value, the stop SL is deleted, no longer present, in practice it becomes "No Stop Loss", but this entry is not present in the blocks you created for modify SL and TP, how can I do? Here is an example of a part of an EA that I created to try and eliminate the SL, but at best it allows me to bring it to 0 which is equivalent to the open price level of trade to change, how can I do to get rid of all the SL?http://fxdreema.com/shared/Jxe6NeTD
I await your thanks, greetings.
Ciao Admin,
ho un problema, devo fare in modo che se lo spread supera un certo valore, lo stop SL venga cancellato, non sia più presente, in pratica che diventi "No Stop Loss", ma questa voce non è presente nei blocchi che hai creato per modificare SL e TP, come posso fare? Qui un esempio di una parte di un EA che ho creato per cercare di eliminare lo SL, ma al massimo mi permette di portarlo a 0 che equivale all'open price level del trade da modificare, come posso fare per eliminare del tutto lo SL?http://fxdreema.com/shared/Jxe6NeTD
Attendo tue, grazie, saluti.
-
Yes, when it is set to 0 it should clear stops. Fixed that.
-
unfortunately no, when I put 0 I move the stop on the same level open price level of trade open, I do not cancel the stop loss entered, I need the stop loss does not exist, it is not at the same level open price level
-
What do you want to do?
- To clear current SL
- To change SL (at what level?)
- To do nothing with SL, just skip
-
- To clear current SL
-
Now this works for me: http://fxdreema.com/shared/aqnYA57Gc
Buy opened with 100 pips SL and TP, then TP modified to 50 pips and SL is gone. -
as you can see from the example that I had sent, I had already done, but the stop is not deleted as with the "No Stop Loss", it is moved to the same level of trade openness
-
Well, I'm not gonna sit and wait for spread to change in order to test your example, so I built more simple example with no conditions at all. Is it working for you? When the option is "Fixed pips" and the value is "0" it should clear the SL.
-
now I'm trying in this way, instead of entering 0 Fixed Pips as SL, I put 0% of SL, so let's see if I can, or if the error returns 0 MT4 me how it could happen.
Thanks anyway for the effort, but it would not be possible in the blocks to amend the SL and TP, also enter the headings "No Stop loss" and "No Take Profit"?
-
I will probably add options "Clear SL" and "Clear TP".
-
thanks

-
I'm having this same problem. When I put the SL 0 (zero), it puts SL in the opening price of the order, and does not cancel the SL. What's going on? Does the error code?
My project is this: http://fxdreema.com/shared/UgLQV6Xgd
-
I can't find where on that project the SL is modified to 0, but I tested this in a simple project and it looks that if I try to modify SL to 0 it is cleared: http://fxdreema.com/shared/MKwaPl7qd
If I decide to put SL to Open Price, it gives me an error message like this "Error: Invalid SL requested (1.35373 for open price 1.35373", but this is because the trade is just opened and SL can't be placed there. -
fxDreema I'm sorry, but I understood what he meant. I need not put SL in the opening price.