Not to close more than two deals
-
In the event that there is more than one buy or sell transaction
Suppose there are 5 selling and 5 buying, I only want to close 2 deals
If it reached the number of transactions for buying and selling TO 100 DEALS NOT CLOSE MORE 2 DEALS
The close is fixed as long as the trade is running
I set an example
https://fxdreema.com/shared/xDGYfAPbb -
@khalids222 I guess you mean closing some specific trades or any 2 trades randomly?
-
@l-andorrà said in Not to close more than two deals:
guess you mean closing some specific trades or any 2 trades randomly?
I only want to close two winning deals
-
@l-andorrà should be winning trades
-
@khalids222 Ok., but ANY 2 winning trades or 2 specific winning trades?
-
@l-andorrà The most deals will be the trend with him
-
@khalids222 I'm sorry but I don't fully uderstand what you mean.
-
@l-andorrà I only want to close 2 winning deals
-
@khalids222 Yes, that I know. My question is, if you have 12 active winning trades, which ones are supposed to be closed? Any 2 of them randomly or the 2 most profitable or the 2 less profitable?
-
I think if i understand you ,
you need like this -
@ramisignals Thank you, but that's not what I mean, but very close to what I want.
-
@l-andorrà I usually open continuously increasing lots, for example
BUY1 =0.1 PROFIT 10$
BUY2 =0.2 PROFIT 20$
BUY3= 0.2 PROFIT 30$
BUY4= 0.2 PROFIT 40$
AND
SELL1 =0.1 LOSS -10$
SELL2= 0.2 LOSS -20$
SELL3= 0.2 LOSS -30$
SELL4= 02 LOSS -40$
HERE SELL = 0.7 LOTS
BUY = 0.7 LOTS
WHEN SELL LOTS = BUY LOTS
I WANT CLOSE FROM (BUY3,4) PROFIT 0.2 LOTS > ( SELL 1.2) LOSS 0.2
Not necessarily be the first and last -
@khalids222 The closing of the SELL & BUY transaction together, provided that the winning lot is greater than the loser
-
@khalids222 Ok. That is a more complex structure. You will need a loop to do that. Is mr. roar near here to give us a hand?

-
@l-andorrà I did not find an answer, is there a way in the event that the profit reaches a certain amount, the same amount will be closed from the losing deal?
Example: We have multiple long and many short positions.
I want to set a condition in the event that the profit of a certain deal reaches 10 dollars, to close the deal of 10 dollars from the losing deal -
@khalids222 I'm sure there is a solution for what you want. Unfortunately, I cannot provide any because I cannot imagine it without creating a loop, sorry.

-
@l-andorrà THANK YOU SO MUCH I WILL TRY