@allstarengin You can limit the max number of open trades by using this:

@allstarengin You can limit the max number of open trades by using this:

I guess you didn't change anything on your bot right? Sadly, this is one of the side effects of using fxDreema. Can you please share the link to your project?
This is the second time you are asking for the exact same question. Please don't duplicate threads.
I'm afraid I don't speak French. I also speak Catalan and Spanish, if that can help.
You need a condition block cheking where price is at 00:00. If it is below yesterday's high, program a pending. If it is above. Don't trade today. Same for yesterday's low.
@windsor-2003 This would be the structure for the highest value:
https://fxdreema.com/shared/wobfy3JZd
But please remember that you will need to restat that variable somewehere else in your bot.
This si the second threasd you created for the exact same question. Please don't duplicate threads.
That SL is too close to current price. No broker will accept that. You will need bigger distances for SSl, like spread plus a few pips most of the time.
When backtesting, you need to taka a look at the green bar on top of the results. It's the quality data. If the result is below 99%, the result is not reliable.
@hojjat78 Are you backtesting the bot on the same broker of your forward trading? And are you using the same tick data?
But what if today's proce levels are not touching yesterday's high/low for the first hours and then later on the session any of those is hit? I don't fully understand the logic. Can the bot trade today if yesterday's high/low are not hit but lates trades are closed if those are hit? What is the exact point of that?
The problem is how many candles in the past are to be searched. You need to limit that number in order to make the bot functional. Will they be 20 candles in the past? 50? 100? If you make it unlimited you will get many highs amd many lows, and the bot will simply be unoptimizable because of the huge information to be processed. Probably what you need is a custom indicator doing that search on it's own instead of embedding it on the bot. I don't know any indicator doing that, but I'm pretty sure you can find some on mql5.com.
Then I'm afraid I don't know the reason, sorry. Probably the reason is within that custom code. We need a programmer here, and I'm not I'm afraid.
@Dr-Amiin I guess you should contact the admin directly.
How many open trades will there be active at the same time? And will there be buys and sells at the same time?
@enzo This is not the right thread for your question. Can you please create a new thread for it?