fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Ignoring trade parameters after a loss

    Questions & Answers
    2
    7
    253
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dgoodwin418 last edited by dgoodwin418

      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?

      https://fxdreema.com/shared/Wox40fGte

      1 Reply Last reply Reply Quote 0
      • S
        sktsec last edited by

        Could you try disabling the buy block as soon as you want to reverse it to sell, or vice versa?

        D 1 Reply Last reply Reply Quote 0
        • D
          dgoodwin418 @sktsec last edited by dgoodwin418

          @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?

          S 1 Reply Last reply Reply Quote 0
          • S
            sktsec @dgoodwin418 last edited by

            @dgoodwin418
            Place 2 blocks, one disable block and one enable block below your reverse logic for true and false respectively.

            D 1 Reply Last reply Reply Quote 0
            • D
              dgoodwin418 @sktsec last edited by

              @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.

              1 Reply Last reply Reply Quote 0
              • S
                sktsec last edited by

                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

                D 1 Reply Last reply Reply Quote 0
                • D
                  dgoodwin418 @sktsec last edited by

                  @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.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  Online Users

                  Y
                  T
                  S
                  T
                  E
                  M

                  12
                  Online

                  146.8k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors