fxDreema

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

    Quick question about this trailing stop

    Questions & Answers
    3
    9
    2207
    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.
    • isp00rt
      isp00rt last edited by isp00rt

      This is part of an EA that must do the following:

      1. Move SL to break even once a fixed amount of profit pips is reached. This part is executed correctly.
      2. From that moment on every new 10 profit pips reached a trailing stop is activated so that it will move the SL 10 pips forward. Example: when 20 pips are reached move the SL from break even to 10 pips forward, when 30 pips are reached move the SL from 10 pips to 20 pips forward and so on. This is what it doesn't do.

      I guess I have a wrong configuration for that block. Could someone check it out, please?

      0_1518091704574_00.png

      1 Reply Last reply Reply Quote 0
      • J
        josecortesllobat last edited by

        Hi

        I think the Trailing Stop block should not be connected after the Break Event block because the Break Event condition takes place only one time per trade or position. So the Trailing Stop condition will be true just one time after the Break Event's condition had been triggered.

        Try to connect both blocks to the true output of the pink block or you can try what is explained here

        https://fxdreema.com/help/working-with/trailing-stop

        Good luck

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

          You're right. I followed the example and it works fine now. Thank you very much.

          1 Reply Last reply Reply Quote 0
          • J
            josecortesllobat last edited by

            Glad to help you!!!

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

              I revisited this thread to check the solution suggested to my initial problem and it seems the example link by josecortesllobat is wrong: no trailing stop solution is included there. Could you please confirm it?

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

                I think that showing an image will be easier to explain my problem. This is what I want:

                1. Once the price reaches a profit of 20 pips, move SL to Break Even. Only then...
                2. Activate a trailing-stop so that every new 10 profit pips the SL also moves 10 pips forward. This means that the trailing-stop will begin to move only when a 30 pips profit has been acheived.

                This how I configured the blocks, but only point 1 works correctly.

                0_1528299355522_01.png

                Any hint why the trailing stop is not working?

                1 Reply Last reply Reply Quote 0
                • C
                  Cartujin last edited by

                  Hi I'm newbie, but I think you can make a new for each trade block, and make the first pink block a connection to the block of break even trade and the second pink block with the same conditions, conected to the break even block, that make two different logical trees, but I think it can solve your problem

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

                    Hi Cartujin,
                    Firstly, thank you for your suggestion. However, I'm not sure having two different logic trees would solve it. Why separating them when both must be under a 'For each trade' Block? I'm afraid I don't understand the logic behind that. Could you please explain a bit more?

                    1 Reply Last reply Reply Quote 0
                    • C
                      Cartujin last edited by

                      Sorry I was wrong, but maybe this can help you

                      https://fxdreema.com/shared/BTkwL64Sd

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

                      Online Users

                      E
                      A
                      G
                      Q
                      C
                      T
                      S
                      A

                      20
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors