fxDreema

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

    all stops on the same price

    Questions & Answers
    2
    9
    1559
    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.
    • D
      Dieter last edited by

      Hello,

      see the example in the attachement:
      For each trade the stops have to have the same price for the stop.
      How I have to adjust the blocks?

      Test_1StopForAll.mq4

      ......
      Test_1StopForAll.mq4

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

        Remove 1 from "Not more than N trades" in block 360. In this situation you want to change SL of all trades, including those who were modified in the past... if I am not wrong.

        But if you do this on every tick, you will just flood the server with requests and SL will always be at the same distance from the current price until some big price movement happens. So It's a good idea to limit these modifications somehow, by time for example - every minute or something.

        I don't get this: http://prntscr.com/9phpvw
        By "price fraction" I mean values like 0.0010. By "pips" I mean values like 10. By "Price level" I mean values like 1.23456.

        What you have now is that you are getting some value that looks like 1.23456 and then using that value where 0.0010 means 10 pips, but 1.23456 means many many more pips.

        In other words, I have no idea what you want to do, but at least I explained some things 🙂

        1 Reply Last reply Reply Quote 0
        • D
          Dieter last edited by

          🙂
          Hi,
          the plan is:

          Step 1: Block 27 opens once an hour an order. This first order, order1, has a fixed stop, for example at price 1,4567.

          Step 2: Block 27 oben a second order2. So two orders are running: order1 and order2

          Step 3: Block 350 check that more than one trade is running.

          Step 4: Block 360 choice the oldest order (order2)

          Step 5: Block 361 modify the stop of the oldest order, order2, to the price 1,4567.

          ....and so on: next order3 opend than order4......order100....n.
          All the orders must have the same stopp 1,4567.

          All orders must have the stop at 1,4567.

          I hope that I could the problem explane to you.

          regards,

          Dieter

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

            I think you want one of these:

            • to create a trade with SL and then to copy that SL for each following trades
            • to create a trade with SL and copy that SL to all previously created trades

            but I'm not sure which one of these? 🙂 And why you mention block numbers 🙂

            1 Reply Last reply Reply Quote 0
            • D
              Dieter last edited by

              I want this two independence parts:
              1.) to create a trade with SL and then to copy that SL for each following trades.
              2.) to create a trade without SL and then give him a SL and for each following created trade without SL, to give these the first created SL.

              I have mentioned the block so that you can understnd the problem.

              regards,
              Dieter

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

                This is just one way of giving a trade the SL of the alreasy existing (oldest) trade: https://fxdreema.com/shared/xJWQKFgub It's pretty simple idea - after a trade is created, get the SL of the oldest trade and modify SL of the current (newest) trade with this value.

                Of course, the SL can be pre-calculated. But it's also important to check if that SL is possible for the trade that will be created. If you put SL that is on the other side of the current price, then you will got only an error message.

                1 Reply Last reply Reply Quote 0
                • D
                  Dieter last edited by

                  This do not work in the manner you have describt. The SL are modified but the modified SL for all orders is always 1 and not the SL of the first order ???? âš¡

                  ......
                  test_StoppForAll-Back2.mq4
                  SL always 1.JPG

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

                    make this "double" http://prntscr.com/9r5sso

                    1 Reply Last reply Reply Quote 0
                    • D
                      Dieter last edited by

                      Thank you for the little help! 😄 😄 😄
                      You make with the forum service a good work âš 
                      Trading needs to be long term, it is a hard work against the big banks and bring the ideas into rules.
                      Sometimes it's the little things that bring the breakthrough. I can recommend to your service and tool in the following manner:

                      good tool.JPG

                      ......
                      good tool.JPG

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

                      Online Users

                      M
                      A
                      E

                      18
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors