Close 50percent volume with ratio 1:1, for other 50 ...
-
Hi
Please can you give me advice how to make this?I have one open trade and i want close 50 percent volume with ratio 1:1 and make break event after that the other 50 percent use another condition, but this condition can happen before r1:1 but this is not correct this reason i want change group of remaining 50percent
open-r1:1-close50per-break event-condition-close50perc
ithink this is start but i dont know what next
http://fxdreema.com/shared/Cr7mpAvXbThank you so much.
-
I'm not sure that I understand, but I can discuss the example.
First, you detect when a trade is closed, note that this will cause the next block to be executed once.
Then you have a loop, which normally loads all trades one after another and does the next things for each one of them. I guess you have to put value "1" for Not more than N trades parameter.
Then you have "Pips away" block, and in this case there is no way for this block to react, because if it is executed once when the trade is created, it still has no profit. An no, this block does not work by itself somewhere in parallel universe, but it does what it is supposed to do when it is executed (and this is true for all blocks).
The last block - well, if the project is like it is now, it can probably close part of the volume for another trade that is running (not the one that is created). That's because now the loop (block 3) works for all trades created by this EA.
If you want to close part of the volume when certain profit is reached, use that loop under "on Tick", and place "(in loop) Once per trade/order" before block 5 to not execute it more than once for a trade.
-
__I'm not sure that I understand, but I can discuss the example.
First, you detect when a trade is closed, note that this will cause the next block to be executed once.
Then you have a loop, which normally loads all trades one after another and does the next things for each one of them. I guess you have to put value "1" for Not more than N trades parameter.
Then you have "Pips away" block, and in this case there is no way for this block to react, because if it is executed once when the trade is created, it still has no profit. An no, this block does not work by itself somewhere in parallel universe, but it does what it is supposed to do when it is executed (and this is true for all blocks).
The last block - well, if the project is like it is now, it can probably close part of the volume for another trade that is running (not the one that is created). That's because now the loop (block 3) works for all trades created by this EA.
If you want to close part of the volume when certain profit is reached, use that loop under "on Tick", and place "(in loop) Once per trade/order" before block 5 to not execute it more than once for a trade.[/quote:3ns3jrur]
thank you its help