Put an opposite order per trade received
-
Hello, I'd like to know how can i put an opposite order per trade on my account. For example, if i put a buy order, inmeditaly open a sell order (but just one opposite trade per trade opened). And apply this on viceversa= if sell order... buy now
-
@uriel-0 On trade tab, purple trade created block, underneeth the opposite buy/sell.
-
Something like that? Doesn't work

shared/E3UhzMIld -
-
@uriel-0 This is what mean and it does work, you don't need the pass blocks, change the buy tree to sell trade created. Have you got a trade placed on the on tick function? this will only work if the opposite trade is placed.
-
@jstap yes, yesterday i got it. Right now i have another problem... How clasify trades to be 1 per one. Because when there are a buy on any active, the EA make the opposite, but when there some many trades, and with just one closed, EA close all opened by it.
Ex.
Buy on EURUSD: EA put a Sell... If manually close the buy, EA close the sell... Is OKThe problem is when there are multiples trades. For example:
Manually: Buy EU
EA: Sell EU
M: Buy EU
EA: Sell EU
....
Manually one Buy EURUSD is closed... EA close all the opposite trades. And I don't want that
-
@uriel-0 This is done by the logic used in each block, every time you buy/sell you can set a group number, this number can be used for things like close/trail so trades are controlled separately to the others.
