Trades in a Grid with the same stop as the oldest trade?
-
Hello good guy,
the first trade of a grid is open. The trade have the stopvalue for example of 1.3000.
A second trade is opened. The second trade must have the stopvalue of the first trade of 1.3000.
Then the next trades will be opened. All trades must have the stopvaoue of 1.3000.
How can I make this?regards,
Dieter -
I missed this tipic for some reason

There is a block to place pending orders in grid, do you mean pending orders or normal orders?
-
I mean both kind of orders (buy now, sell now, sell pending order, buy pending order).
I do not use the block 'place pending orders in a grid because it needs a lot of power during the optimizations.Example:
I start the grid with a buy order. This is the first order. This buy order has a stopp-loss of , for example, 1000 pips in the block. If this buy order start at 1.3000 the stopp-loss will be 1.2000.
Evers next buy now or buy pending order must have the same stopp-loss 1.2000.Can you give an example, please?
regards,
Dieter -
You can save this in a variable and then use it in every block. Or you can get SL from the last trade, and use that.
In "Buy pending orders in grid" look at the "Stop-Loss mode" options, there is something that says "the same for all orders".
-
How can the ea get the stop from the last trade or from the oldest trade?

-
"For each Trade", "For each Closed Trade" with value of 1 for "Not more than...". Then get SL, TP, Lots or whatever attribute in Condition -> (in loop)... (the pink dot icon)