fxDreema

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

    Trailing Stop after # of pips from trade entry

    Questions & Answers
    3
    6
    1712
    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.
    • M
      MIKEIKE last edited by

      Hi,

      I am attempting to create (Master Automated Stop) a stop loss program > Initial stop = 80 pips then after 80 pips in money = 60 pips stop then after 100 pips in money = 50 pips stop then after 150 pips in money = trailing stop at 33.3% of profits.

      I have set this program up using "Once Per Trade" and "Pips away" and it appears to work sometimes and not others?

      I KNOW that trailing stop is used in all setups but it didn't work at all with "Modify Stop" and I KNOW that trailing stop should be at tick level, but that does not allow the "pips away" staggering for money management? is it possible you can advise a better approach?

      Thanks,

      Mike ❓ ❓ 😢 👿

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

        I think I will forbid using blue and pink blocks in the same group of blocks in future.

        This is the regular single-block trailing stop: https://fxdreema.com/demo/mt4-trailing-stop
        This is basically the same, but using multiple (pink) blocks: https://fxdreema.com/demo/mt4-loop-trailing-stop

        There is no reason to put "Trailing stop (each trade)" inside the loop created by "For each Trade". "Trailing stop (each trade)" has it's own loop inside! More than that - this block is designed to work most of the time, if not all the not. It's not to be hidden behind some "once per trade".

        There is a pink block called "modify stops".

        Follow the logic in the loop. "For each trade" loads each trade one after another, in your case - on each tick. What's next - "once per trade/order" - this block remembers ticket numbers, it passes 1 time for each trade. It will pass the very first time that it sees your trade, can you expect that it will pass again when the trade has some profit or loss... basically when some time passed? Not at all. What if you put that block after "pips away"?

        I think I know what you want to do, it's something that I still don't have in a single block. But with multiple pink blocks is possible. Something like this: https://fxdreema.com/shared/BxqrMwCVb It's not very elegant, but it should do the trick. The only problem is that "once per trade/order" has temporary memory and if the EA is restarted, that memory is lost.

        1 Reply Last reply Reply Quote 0
        • M
          MIKEIKE last edited by

          I created a manual Trailing Stop by using "Pink Blocks" > Modify Stops - As per your recommendation. Is this string of blocks too many? Please check "MASTER AUTOMATED STOP"

          THANKS! 😛 😎 😎

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

            Wow, it's not good when things goes in that direction, to use too many blocks, which are otherwise the same. It will probably work, but it does not look very good. But maybe I just have to make a single block to do all this stuff 🙂

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

              Hello
              I used for each trade statement or loop, and I think it killed my other trades, is there a way for the EA to act on the attahced chart only

              thanks

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

                jeansoleil, what you are asking for happens like this by default. Only if you change the Magic input parameter or set the blocks to work with manual trades, only then the EA could work with other trades

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

                Online Users

                A
                I
                A
                E
                S
                E
                J
                2
                C
                R

                43
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors