fxDreema

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

    Simple consecutive trades

    Questions & Answers
    2
    9
    1116
    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.
    • E
      eliasxenos last edited by

      How do I activate a buy order with a trailing stop immediately after a previous trade has closed (by reaching its own trailing stop)?

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

        I think the answer for you is to set "Trailing start is..." parameter to Off

        1 Reply Last reply Reply Quote 0
        • E
          eliasxenos last edited by

          Not sure I understand. I want the "Buy now" (Block 4) to be executed with its own trailing stop after the previous "Buy now" (Block 2) has closed (by execution of its own trailing stop). What do I need to add to this diagram to make it work? Thanks!

          ......
          Capture.JPG

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

            Trailing stop (each trade) works when there is a trade, it does not care when it was created. If a trade exists, it will be checked/modified in the block.

            BUT! There are settings inside the block, so the above is not always true. Look at this parameter:

            http://img.prntscr.com/img?url=http://i.imgur.com/xTGnH5Z.png

            Now it says that the trailing stop will modify SL when the price goes above the open price. In other words - in the first tick in the right direction. But if it starts moving in the wrong direction, it will not modify the SL.

            Set the parameter to Off to modify the SL right after the new trade was created.

            1 Reply Last reply Reply Quote 0
            • E
              eliasxenos last edited by

              Thank you, that helps, but I'm still not clear on exactly which boxes to use to cause one trade to be executed immediately after one trade closes. In particular, I need need a sell trade placed immediately upon the close of a long position (as a result of the long position having reached its stop loss). Thanks again for your assistance.

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

                Right now you should have continuous buys? Now what you have is - on every tick check if there are trades or not, and if there are none, buy. So when the trade is closed, "No trade is running" will detect that there are no trades and it will pass to "Buy now", so you immediately end up with a new trade, right after the old one.

                But if you experiment too much with Group and Market settings, this behavior may change. Try this with brand new blocks, with default settings. Like this here: https://fxdreema.com/demo/mt4-buy-now-i ... ade-exists

                1 Reply Last reply Reply Quote 0
                • E
                  eliasxenos last edited by

                  I recognize what I have in the diagram is incorrect, but let's ignore that for now. I'm interested to know which blocks to use for the simplest of algorithms:

                  1. If no trade is currently running, BUY with a trailing stop loss.
                  2. When the stop loss is triggered, automatically SELL with a permanent (non-trailing) stop loss.

                  As simple as this is, I can't seem to assemble right blocks. Thank you.

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

                    I don't think that these are all the rules, but here is an EA that does exactly this: https://fxdreema.com/shared/m7cE4zWce
                    And the result is here: http://prntscr.com/5t00fo Initial Buy trade, trailing stop, then closed on loss, then a new Sell without trailing stop.

                    1 Reply Last reply Reply Quote 0
                    • E
                      eliasxenos last edited by

                      Perfect. Thank you.

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

                      Online Users

                      E
                      O
                      M
                      S
                      S
                      S
                      M
                      T
                      S

                      19
                      Online

                      146.9k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors