Only one trade at a time on high volatility currency pair (No Trade not working)
-
Hello, I'm having a problem with my EA. It's active on four currency pairs at same time,
and I want it to prevent a second trade from being opened on another currency pair when an order is opened on one pair.
I'm currently using the No Trade option. It works fine, except during high volatility. However,
it's possible to open a trade on two or more currency pairs at the exact same time. Does anyone have a solution for this?Thanks in advance for your response!
-
Yes, it's possible, but I guess you are requesting for that to happen o any of those 4 symbols, right? I mean, are those 2 simultaneous trades to be open on 2 specific symbols or on any of them at random?
-
That's right, I'd like to see that if a trade is active on one pair,
no other trade on another currency pair would be possible.
Currently, this still happens occasionally because volatility is high
and the parameters for all currency pairs are identical. -
@bunker9508 The you can do this:

The blue blocks will wait until 2 trades are open right now on any charts. If that is true, then both 'buy/sell now' blocks will be blocks via the 'turn off' block. If no trade or just one trade is open, the the 'turn on block' will reactivate them.
-
Thanks!, I'll test it, hopefully it works.
-
@bunker9508 You're welcome.
-
Unfortunately, the options provided here do not work, and the EA continues to execute multiple trades on different currency pairs despite the no trade and tradecount options.
This only happens if the trades are executed at the exact same moment and down to the second; if there is some time difference, there is no problem, and the EA is only active on one pair at a time,
which is exactly how I prefer it. I would appreciate hearing if anyone has a solution for this.
The EA operates on the 1-minute timeframe, and only during high volatility can it sometimes happen that multiple trades are initiated simultaneously on multiple currency pairs.
Is there a possibility to, for example, delay the orders and then execute only one? I look forward to hearing your ideas. Thanks in advance!
-
Not read this but am sure it will, add a shared link rather than pictures, this way block internals can be seen: projects - get a shared link - generate - copy address bar - past here. if you change symbol to any symbol in all relevant blocks in EA then only 1 trade will be placed on account:

-
Okay, sorry, here is the link to the project https://fxdreema.com/shared/yf5UXScMd
The problem only occurs when orders are executed simultaneously; with a one-second difference in execution, the problem does not occur.
-
trees starting with 14 & 19 will never fire... because no trade - trades != 0 conflict with each other. I do not see how your 2 RSI conditions can pass at the same time, as 1 is high on the RSI chart and the other low, while asking for a cross not just < or >