It is probably as you have a close trades block on each tree, and as this is set to the opposite type it has a green light to reach on many situations, for now delete them and add the close back, maybe on a separate tree when you ensure all else is working.
Posts made by jstap
-
RE: Too many trades.posted in Questions & Answers
-
RE: Too many trades.posted in Questions & Answers
This depends it is very strategy specific, you could use time to prevent, once per bar depending on TF used would restrict trades taken. Simply trade taken switch flag off, when something happens switch it on, and check before taking a trade.
-
RE: Too many trades.posted in Questions & Answers
Your bot runs on conditions that are often true, you need to limit this by adding/changing conditions... one way would be to add a flag that stopes trades being placed until you want them to be placed.
-
RE: EA closing running trades without commandposted in Questions & Answers
Everything looks ok, my guess is one of the pink close blocks is causing this. With so many blocks the only way to know is a process of elimination, switch all close blocks off, test, then one at a time switch them back on and test, until you find the problem, you will know where to investigate.
-
RE: EA closing running trades without commandposted in Questions & Answers
Add a shared link so we can look at the project and possible problems
-
RE: How to store/save Stop loss amount of recent closed tradesposted in Questions & Answers
Try this so always showing the result, on mt4 this will show the last trade profit:

-
RE: How to store/save Stop loss amount of recent closed tradesposted in Questions & Answers
Add a shared link so I can see how this is set up
-
RE: How to store/save Stop loss amount of recent closed tradesposted in Questions & Answers
Put that variable into a comment block and see what is being returned... if trade placed is not from the same EA you are reading this value you need to select all automatic and manually placed in the group option
-
RE: How to store/save Stop loss amount of recent closed tradesposted in Questions & Answers
on trade tab - trade(position) closed set to SL - for each trade(position) set to 1 newest to oldest - modify variable (create double variable named what you want) and save the loop profit price. This will give you a variable to use for other actions.
-
RE: How can I check the last closed trade was open on candle ID 0?posted in Questions & Answers
I assume this did what was needed, I use ChatGPT for this type of code, the problem is that the FX trade time returns as a string, not a number. This is MT4 but will show you what I mean:
-
RE: Need Help: Building a "Previous Hour Breakout" Strategyposted in General Discussions
Use candle 1 for your price levels:

-
RE: Could you please explain how to split trades into Group 1 and Group 2?posted in Questions & Answers
Groups are what a trade is placed in, when you place a trade you give it a group number at the top of the block, so your conditions above are what says to place the trade, you can then use the group number in other blocks to control the trade.
-
RE: “Manual Trade” sizingposted in Questions & Answers
Button is the only way I know, you could place a pending order that places the new and then deletes, but this is not as simple as a live trade. This is how to use a button on tick: https://fxdreema.com/shared/yfqIa8vMd

........