I want to close one transaction alternating between buying and selling
-
I want to rotation in closing the buying and selling deals, so that every time a deal is opened, it will be seen if there is a profitable buyf ten dollars that will be closed, and then it will look at whether there is a profitable selling deal of ten dollars that will be closed easily .
The number one in the blue color started to profit and was closed after that it will wait until it win the sell in the red color and then it is closed
The problem is when he closes the sell deal, which represents the number one in red, it will come to close the buy, it will find several profitable deals, it will close them all .
I only want to close one trade at a time even if there are several winning trades
How can that be done?
-
@khalids222 this logic is no different than a grid system. Use pips away from open price and add volume blocks if you want to create the grid manually
-
@vonmunchy I have a problem with closing only not open
Can you explain an example please? -
@vonmunchy My problem is when closing a number, for example. $10 and there were five profitable trades of $10 or more and it will close the five deals.
I just want to close the biggest profit and leave the rest of the profitable trades -
Risky strategy but u can use pips away block from entry price and start to close your position (partially ). just consider if trade goes opposite direction ? whats your escape plan ?
-
@saeed-2 j i ust put an example to explain what is required.
There are no risks.
Let's take the question differently? far from the example
far from the exampleI have five winning buy trades. And One winning
sell trades. I want to close them one by one in order.
If I put unrealized profits, all of them will be closed.
If i set a specific price and all trades are greater than this price, all of them will be closed.
How to close the biggest profit only one deal. Then go the other way -
@khalids222 well you need to build the logic yourself with trail and error. start below the 2 blocks shown below.

-
@khalids222 You need an array to store all trades' profit into and them searching for what you want. That cannot be made with fxDreema. You need custom code to create that array. I'm afraid only a programmer can do that.
-
@vonmunchy thank you so much
-
@l-andorrĂ thank you so much
-
@khalids222 You're welcome.