fxDreema

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

    Pending Order Won't Delete

    Questions & Answers
    2
    5
    1341
    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.
    • C
      camhawk last edited by

      I have a rule set to delete the last remaining pending order when the previous order hits take profit.

      When I back test this it works fine, but when I run the EA on live or demo accounts the 2nd pending order does not delete. There is no information about why it's not working in the Journal either.

      I have tried two ways:

      • Check for previous trade closed in profit
      • Check for previous trade that hit Take Profit

      Here's an example of both methods:
      https://fxdreema.com/shared/BctNzz83b

      Any help much appreciated!

      Cheers

      Been running an FxDreema Course since 2017. So, now in 2022 I'm thinking I should really let you fine folks in this forum know about it ;-)

      I teach my build and debug strategies that reduce blocks, increase development speed and enable complete flexibility. I teach you how you can build almost anything you dream up with just a few of the blocks.

      To find out more visit https://tradingnut.com/rbcfullfxdreemacourse/

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        "AND" block is not needed.

        You have "Delete pending orders" set to delete all pending orders with magic number 1412 (MagicStart+Group). I don't know where your pending orders comes from, probably another EA. In any case, make sure that magic numbers match.

        Here is a simple example of creating multiple pending orders and then delete them using "Delete pending orders":
        https://fxdreema.com/shared/okJGnBp8e
        It works for me:
        http://img.prntscr.com/img?url=http://i.imgur.com/GChz1bF.png

        1 Reply Last reply Reply Quote 0
        • C
          camhawk last edited by

          Thanks.

          Where can I change the MagicStart number? I can't see it in any of the boxes?

          Will also try and update the EA using your suggestions to see if that helps.

          Cheers

          Been running an FxDreema Course since 2017. So, now in 2022 I'm thinking I should really let you fine folks in this forum know about it ;-)

          I teach my build and debug strategies that reduce blocks, increase development speed and enable complete flexibility. I teach you how you can build almost anything you dream up with just a few of the blocks.

          To find out more visit https://tradingnut.com/rbcfullfxdreemacourse/

          1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema last edited by

            Click on the bench icon on the lower right corner. Also, this is an input parameter that exists for all EAs.

            1 Reply Last reply Reply Quote 0
            • C
              camhawk last edited by

              Thanks, these changes fixed it!

              Been running an FxDreema Course since 2017. So, now in 2022 I'm thinking I should really let you fine folks in this forum know about it ;-)

              I teach my build and debug strategies that reduce blocks, increase development speed and enable complete flexibility. I teach you how you can build almost anything you dream up with just a few of the blocks.

              To find out more visit https://tradingnut.com/rbcfullfxdreemacourse/

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

              Online Users

              M
              C
              K
              T
              K
              D

              14
              Online

              146.6k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors