fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Help, Delete Stop Loss SL

    Bug Reports
    3
    14
    3860
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      flaviotour last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        Yes, when it is set to 0 it should clear stops. Fixed that.

        1 Reply Last reply Reply Quote 0
        • F
          flaviotour last edited by

          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

          1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema last edited by

            What do you want to do?

            1. To clear current SL
            2. To change SL (at what level?)
            3. To do nothing with SL, just skip
            1 Reply Last reply Reply Quote 0
            • F
              flaviotour last edited by

              1. To clear current SL
              1 Reply Last reply Reply Quote 0
              • fxDreema
                fxDreema last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • F
                  flaviotour last edited by

                  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

                  1 Reply Last reply Reply Quote 0
                  • fxDreema
                    fxDreema last edited by

                    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.

                    1 Reply Last reply Reply Quote 0
                    • F
                      flaviotour last edited by

                      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"?

                      1 Reply Last reply Reply Quote 0
                      • fxDreema
                        fxDreema last edited by

                        I will probably add options "Clear SL" and "Clear TP".

                        1 Reply Last reply Reply Quote 0
                        • F
                          flaviotour last edited by

                          thanks 😉

                          1 Reply Last reply Reply Quote 0
                          • tcanuto
                            tcanuto last edited by

                            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

                            1 Reply Last reply Reply Quote 0
                            • fxDreema
                              fxDreema last edited by

                              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.

                              1 Reply Last reply Reply Quote 0
                              • tcanuto
                                tcanuto last edited by

                                fxDreema I'm sorry, but I understood what he meant. I need not put SL in the opening price.

                                1 Reply Last reply Reply Quote 0
                                • 1 / 1
                                • First post
                                  Last post

                                Online Users

                                M
                                P
                                E
                                N
                                G
                                G
                                B
                                W
                                A
                                E
                                S
                                D

                                23
                                Online

                                146.8k
                                Users

                                22.4k
                                Topics

                                122.6k
                                Posts

                                Powered by NodeBB Forums | Contributors