fxDreema

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

    buy/sell pending orders

    Questions & Answers
    3
    5
    1217
    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.
    • N
      newlearning last edited by

      Hello!
      I am having trouble with pending orders. After using the block for each closed trade if i use buy pending order, i doesn`t just place the 1 pending order, it just keeps placing them causing a mess. I am hoping somone can tell me why this occurs and how i can get around this. 😕

      1 Reply Last reply Reply Quote 0
      • N
        Nabakap last edited by

        I think you have missed out "No pending order" block http://prntscr.com/98yytw
        New pending order will be placed only if there is no other pending orders waiting.

        1 Reply Last reply Reply Quote 0
        • N
          newlearning last edited by

          __I think you have missed out "No pending order" block http://prntscr.com/98yytw
          New pending order will be placed only if there is no other pending orders waiting.[/quote:33d2wnmr]

          Hi Nabakap,

          Thanks for trying to help. And nice to meet you! So if i have orders in a grid with a take profit on each order, how can i get a pending order to replace a closed trade? Essentially i want each trade that closes to trigger the placement of a new pending order replenishing the grid so to speak..If you understand what i mean. Of course all trades to be closed and pending orders to be cancelled once the predetermined unrealised profit has been reached on the (potentially group) of trade/trades. I hope i make sense 😉

          1 Reply Last reply Reply Quote 0
          • N
            Nabakap last edited by

            Sorry, I'm no pro coder, for all BIG questions you have to wait Fxdreema to answer.
            There is some simple/little questions that I can try to help. I skechuped some blocks together and tested it, and... I'm not shore, but maybe "once per trade/order" block can help. http://prntscr.com/995flt

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

              There is not a single answer to this question. I think it's best to work under "on Tick", check the current number of orders and do something depending on their number... if this is the idea. If the EA is restarted, it should continue as if it was not restarted. Note that "once per trade/order" uses temporary memory which is reset when the EA is restarted. Also note the option inside.

              Otherwise you can work under "on Trade", but each Trade signal happens once, which can be good or bad.

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

              Online Users

              X
              J
              A
              N
              S
              E
              A
              M
              T
              M

              18
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors