Dynamic Grid: Distance % (at market)
-
I ask for help from the forum to create a simple dynamic grid that calculates the distance - between one order and another - of a previously set percentage. Orders must not be "pending" but enter the market when the condition described above occurs.
I tried to combine some blocks but it doesn't work as it should; Where am I doing wrong?
https://fxdreema.com/shared/gwSODZUQd
Thanks to those who want to help me.
-
Firstly, don't connect blocks 35 and 43. They have to head two separate threads. Second, block 43 is identified for 'group' 32 whereas sell block 104 is specified for group 33. One of them must be corrected.
Try it now and let us know.
-
Hi l'andorrà,
many thanks for your reply, but i have any problems, too.- I have only three trades.
- the distance is not dynamic, too.
https://www.mql5.com/en/charts/10357630/eurusd-h1-pepperstone-group-limited
What do you think?
-
I'm not sure what I'm seeing at that screenshot. I see three orders but I don't understand why they are not dynamic. Did you update your project as I suggested?
-
@l-andorrà
Yes, of course: see the shared link.Could you help me?
-
I'm sorry but I can see just two links. The first one is your initial project on the first message of the thread withou any of the modifications I suggested. The second one is a screenshot of a EURUSD chart with three orders on the same bar. I can't see anything else.
-
-
Sorry but I see the exact same image. Why don't you use a shared linf of your project like on your first message?
-
-
Ok. Now I see it. You need the following:
- Blocks 35 and 40 must share the same 'group' number. Let's say 1.
- Same for blocks 43 a and 104 but with a different number. Let's say 2.
- I don't understand why you need block 106. I can't understand why it is required. Could you please explain?
- I strongly recommend you to duplicate both threads. One for buy and another one for sell. Blocks 35 and 43 do not distinguish buys from sells, whereas all trades in the projects will be sells.
Try it all and let us know.
-
@l-andorrà
Many thanks : I will try it. -