Opposite order
-
Hello, tell me how to place an opposite order for 10-20 pips if the price has turned.
-
@vypchela Sorry, i don't know
-
What do you mean by "price has turned"?
-
-
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.
-
@vish I can not understand, is there an example?
-
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:

-
@fxdreema Not that, here is only for purchase, need add 10 pips sale order to the purchase.
-
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

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:

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

-
@fxdreema Thank.
-
@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
....
