all stops on the same price
-
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 -
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

-

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
-
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 
-
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 -
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.
-
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 ????

-
make this "double" http://prntscr.com/9r5sso
-
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