fxDreema

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

    Open New Pending Orders

    Questions & Answers
    2
    3
    1140
    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.
    • J
      Jaychyke last edited by

      Hello FxDreema,
      I want to open a New Pending Order when a previously set pending order is activated. For example, I want to open a New Sell Stop Order when a previously set Buy Stop Order is activated. In what I've done so far, https://fxdreema.com/shared/S8JeD7hoe, the desired new pending order doesn't get set when a previous pending order activates/triggers. I tried to use " If Trade is running", no success, then I tried "For each trade" (the latest trial), no success too. The new pending order starts only after I restart the EA, after the previous pending order is already running. I want the new pending order to be set immediately after the activation of the previous pending order. Which command/button should I use? Please help, thanks.

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

        This is something that you need to understand: https://fxdreema.com/demo/mt4-wrong-closing-rule (connecting everything in one row is not the answer)

        I don't know why you use "For each Trade".

        So, there are few ways to do this, it depends.

        One way is to check the existance of the current orders/trades and create a new order based on that. Like, if there is a trade and there is no order -> create new order. The type of the last order or trade can be always get, everywhere and at any time.

        Another way is to do it under "on Trade" and detect the exact moment when the old order becomes a trade. But this is an event that happens 1 time only and if the EA is not working at this moment, you will miss that event. You can actually prefer to do it that way.

        1 Reply Last reply Reply Quote 0
        • J
          Jaychyke last edited by

          Sorry, I couldn't find the "On Trade" button!

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

          Online Users

          M
          D
          A
          W
          S
          F

          11
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors