fxDreema

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

    Close 50percent volume with ratio 1:1, for other 50 ...

    Questions & Answers
    2
    3
    1038
    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.
    • V
      varso last edited by

      Hi
      Please can you give me advice how to make this?

      I have one open trade and i want close 50 percent volume with ratio 1:1 and make break event after that the other 50 percent use another condition, but this condition can happen before r1:1 but this is not correct this reason i want change group of remaining 50percent

      open-r1:1-close50per-break event-condition-close50perc

      ithink this is start but i dont know what next
      http://fxdreema.com/shared/Cr7mpAvXb

      Thank you so much.

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

        I'm not sure that I understand, but I can discuss the example.

        First, you detect when a trade is closed, note that this will cause the next block to be executed once.

        Then you have a loop, which normally loads all trades one after another and does the next things for each one of them. I guess you have to put value "1" for Not more than N trades parameter.

        Then you have "Pips away" block, and in this case there is no way for this block to react, because if it is executed once when the trade is created, it still has no profit. An no, this block does not work by itself somewhere in parallel universe, but it does what it is supposed to do when it is executed (and this is true for all blocks).

        The last block - well, if the project is like it is now, it can probably close part of the volume for another trade that is running (not the one that is created). That's because now the loop (block 3) works for all trades created by this EA.

        If you want to close part of the volume when certain profit is reached, use that loop under "on Tick", and place "(in loop) Once per trade/order" before block 5 to not execute it more than once for a trade.

        1 Reply Last reply Reply Quote 0
        • V
          varso last edited by

          __I'm not sure that I understand, but I can discuss the example.

          First, you detect when a trade is closed, note that this will cause the next block to be executed once.

          Then you have a loop, which normally loads all trades one after another and does the next things for each one of them. I guess you have to put value "1" for Not more than N trades parameter.

          Then you have "Pips away" block, and in this case there is no way for this block to react, because if it is executed once when the trade is created, it still has no profit. An no, this block does not work by itself somewhere in parallel universe, but it does what it is supposed to do when it is executed (and this is true for all blocks).

          The last block - well, if the project is like it is now, it can probably close part of the volume for another trade that is running (not the one that is created). That's because now the loop (block 3) works for all trades created by this EA.

          If you want to close part of the volume when certain profit is reached, use that loop under "on Tick", and place "(in loop) Once per trade/order" before block 5 to not execute it more than once for a trade.[/quote:3ns3jrur]
          thank you its help

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

          Online Users

          S
          S
          S
          A

          17
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors