Please Help With This Problem
-

everything i want is set perfectly but the issue is that for each order closed, the trade keeps staying on the buy side when i want the profited closed trade to switch to sell. Of course for losing buy orders, it buys again which i wanted for it to do but has no business buying again after a winning trade (should sell only) and vice versa for sell orders.
-
@NamiyrD
Without a link others can't see what is inside your blocks -
-
Is this the whole structure or just part of it? If this is all the problem is that the blocks on top of the buy block will always be executed first when there is not trade open now. As soon as there is a buy open there will never be a sell because of that 'no trade' block.
-
@l-andorrà The whole structure.
I wanted to make the ea switch between buy/sell every time there's profit for each pair, and continue buying or selling if there's a loss. that's all i want for this ea to do and it's hard.
-
what you need is not difficult if you use a logic variable (yes/no) to stop buying and then selling. However, I don't see the logic of buying until there is profit and then selling. What is the point of that exactly?
-
@l-andorrà the point is to create my own volatility instead of waiting for it
-
Ok. So let's do it. How would you like to switch from buy to sell? Using buttons maybe?
-
@l-andorrà So every time I want to switch between buy/sell is when i make profit of any kind. I want to switch by the ea automatically placing the order already.
If an original order (buy or sell) has taken a loss after i close all trades, i want the order to be replaced with another order of the same.
-
But do you mean that all trades will be closed will be closed at the same time and then, if the overall result is a loss, a new order will be immediately open? For example, if some buys and sells are closed and there was a loss, more buys and sells should be open again? I don't see the logic behind that.
-
@l-andorrà Nvm I got what I needed, thank you
-
You're welcome.