Error, opens operations contrary to the construction condition
-
Hello. HAPPY NEW YEAR TO THE ENTIRE FXDREEMA COMMUNITY!!
I need help. I HAVE BEEN TRYING TO SOLVE THIS ERROR FOR A MONTH AND A HALF AND I CANNOT.
This construction works well (OPENING AND CLOSING OPERATIONS ACCORDING TO THE GUIDELINES) but when you have closed the operations by take profit or by trailing stop and the conditions that generated the operation are maintained you should open operations in the same direction (if you bought buy again and if you sold, sell again) but it does the opposite, it opens a sale if you bought and it opens a purchase if you sold (attached image). I don't know if I have made a mistake or if I am missing a block that tells the robot that it has to open an operation in the same direction.
How to correct this error. Apologies for the text of the images in Spanish
Thank you for your help GOOD 2024!! -
You need to create t2o separate groups. One for those open manually and another one for those open automatically. The bot cannot distinguish them now.
-
I don't understand. There are no manually opened trades. What I did was manually close the first group of operations (SELL) that the robot opened incorrectly to check if the error was repeated. My question refers to that error. I understand that something is missing that tells the robot that if the entry conditions are maintained it should enter again in the same direction (buy) and not in the opposite direction (Sell). Thank you for your help and happy and prosperous 2024
-
Then I misunderstood your screenshot, sorry. Here you have some hints.
- Substitute both 'for each trade' blocks by 'pass' blocks instead. You are connecting a loop block to another loop block.
- Use a 'once per bar' block just above both 'buy/sell now' blocks. Not on top of the block tree.
That should stop opening many trades
