fxDreema

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

    Opposite order

    Questions & Answers
    5
    11
    3668
    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.
    • V
      vypchela last edited by

      Hello, tell me how to place an opposite order for 10-20 pips if the price has turned.

      A 1 Reply Last reply Reply Quote 0
      • A
        ambrogio @vypchela last edited by

        @vypchela Sorry, i don't know

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

          What do you mean by "price has turned"?

          V 1 Reply Last reply Reply Quote 0
          • V
            vypchela @fxDreema last edited by

            @fxdreema 0_1552958336016_1(3).png

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

              Create 03 variables. Get the original trade price into the first variable and then add the required pips to that price and put it in the second variable (for price turns after buys). Then deduct the pips from the original price and put it into the third variable (for price turns after sells). Then just add a condition to buy or sell when you reach the price levels of second or third variable depending on your original trade.

              V 1 Reply Last reply Reply Quote 0
              • V
                vypchela @vish last edited by

                @vish I can not understand, is there an example?

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

                  This screenshot is from this example: https://fxdreema.com/demo/mt4-loop-add-to-volume-on-loss
                  Try this: https://fxdreema.com/shared/DwGrp5Fvc
                  This is all I changed:
                  0_1553536390813_bb33ac83-4ca8-49e1-8eb1-cb03f4eff9f8-image.png

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    vypchela @fxDreema last edited by

                    @fxdreema Not that, here is only for purchase, need add 10 pips sale order to the purchase.

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

                      In the example "Add to Volume" there is some relationship between the first trade and the following trades. Let's call the first one "mother" and the rest - "children". That "add to volume" block creates such children. And each children has few properties that are the same as the mother - SL, TP and I forgot what was the other. This allows me to detect mothers and children in the "pips away" block and only because of that this example is so easily possible. There is no functionality for Sell mother to create Buy children, so it is tricky to make it.

                      I made this example: https://fxdreema.com/shared/iIufGSqJ

                      0_1554099029983_92a28f51-0366-437e-90d0-67d89f102f4a-image.png

                      I use two groups. The initial Sell trade is from the default group 0 (empty value for Group means 0). Blocks 7 and 8 would make trades from group 1. Also, block 9 is set to work for group 1.

                      Ok, so one initial Sell trade with Group number 0 is created. With block 3 we want to only load the last trade, which can be from group 0 or 1. Note that for the Group parameter I set "0,1". Now we only have one Sell from group 0, so this one is loaded. Then in block 4 I check whether or not the trade is from group 0. In other words, I want to reach block 5 only if the last trade is from group 0, not from group 1. And 10 pips above the sell a new Buy is created (blocks 5-6-8). Now this Buy has Group of 1 and for SL and TP I used those from the original Sell trade.

                      In block 9 I only load the last trade from group 1. I don't have "Condition" block here, but if I have at least one trade from group 1, I expect it to be the latest trade. If this can be not true, you can try this:
                      0_1554099608091_291143bf-57ee-4174-9f13-21b76a852e2f-image.png
                      So, in block 10 I detect 10 pips of movement and then I "add to volume".

                      The initial Sell is the reason for the following Buy to be created, but they have no relationship. And that Buy is the mother of the following Buy children.

                      Anyway, I think it could be better if you just close the Sell, make the Buy and never go into these tricks I described above 🙂

                      V 1 Reply Last reply Reply Quote 0
                      • V
                        vypchela @fxDreema last edited by

                        @fxdreema Thank.

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

                          @fxDreema thanks a lot with the example.
                          How can configure so the orders after the 1 opening, the lot size is x1.5?

                          eg:

                          Order #1: Sell with 0.1
                          Order #2: Buy with 0.15
                          Order #3: Buy with 0.3
                          ....

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

                          Online Users

                          S
                          A
                          B
                          A
                          J

                          21
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors