Check Profit (last closed) block prevents placement of future trades
-
Hello everyone! I have a concern regarding the use of Check Profit (last closed) block. I noticed that, yes it effectively activates the close position and delete pending order blocks that I connect to it, however, when the next trading day comes, the supposed position are then opened and closed immediately. The day that follows it, the EA then executes the operation correctly.
It goes something like this:
Day 1 - EA operation correct
Day 2 - EA operation incorrect (opening and closing of positions immediately)
Day 3 - EA operation correctFor context, everyday (or days when the EA will be used) the EA must open position on a specified time. When a certain position is closed (in profit) the other position/s will also close (regardless if its in profit or loss) that is why I integrate the close position block and delete pending order block to the Check profit (last closed).
What could be the problem and how can I fix this? Thanks a lot!
-
Problem solved. The Check Profit (last closed) block should be connected to the yellow output under the Once a day block for the operation to work properly.
-
Congrats!
