Good afternoon. In testing my EA, I noticed that when it loses consecutively, it's because it's taking multiple trades in the same direction. I have a set of conditions that says after a loss, if a buy signal appears to take a sell instead but because I also have the original parameters set, it's taking two trades at once every time. My question is... Is there a way to get my EA to ignore the initial parameters after a loss so I'm not taking two trades in opposite directions?
Unsolved Ignoring trade parameters after a loss
-
Good afternoon. In testing my EA, I noticed that when it loses consecutively, it's because it's taking multiple trades in the same direction. I have a set of conditions that says after a loss, if a buy signal appears to take a sell instead but because I also have the original parameters set, it's taking two trades at once every time. My question is... Is there a way to get my EA to ignore the initial parameters after a loss so I'm not taking two trades in opposite directions?
-
Could you try disabling the buy block as soon as you want to reverse it to sell, or vice versa?
-
@sktsec Thank you for your response. I am new to that so I don't know how to do it which is what I'm trying to get guidance on. In looking at the "Turn OFF blocks" condition, it looks like it would need to be done manually every time I want to do it. So how would I go about doing what you are suggesting?
-
@dgoodwin418
Place 2 blocks, one disable block and one enable block below your reverse logic for true and false respectively. -
@sktsec thank you again for responding. Can you please explain why I would put the disabling block on the reverse logic? The reverse seems to be operating as I want it to because it only initiates after a trade loses. What I would like is for the EA to look for the reverse logic 1st after a trade closes because my main logic is set to only take a trade if there is no open trade.
-
I might have missed some of your points. Actually using your reverse logic to set a bool variable, then put a condition above orginal buy/sell. True: Orginal buy/sell. False: sell/buy
-
@sktsec I thank you for responding. I had to step away from the project for a few days. But when you say set a bool variable, can you elaborate on that a little bit. I know how to set up the condition but I don't know how to do what you're suggesting as a way to do what I want to get done.