fxDreema

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

    Can I use close trade and close partially in the same ea

    Questions & Answers
    4
    5
    2148
    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.
    • R
      ronniethetrader last edited by

      Hi,

      I am having a hard time getting this to cooperate. I am trying to include take partial profit at 100 pips on each original trade than let the rest run until it hit target or a close trade signal. Below is the ea I have

      0_1531281246291_d590d85b-e703-4708-9b53-0d878089e67b-image.png

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

        And what's your exact problem? Does it close your trades partially or not?

        1 Reply Last reply Reply Quote 0
        • R
          ronniethetrader last edited by

          Yes, it closes partial, but it closes partial after partial. Instead of partial one time and letting the remainder position play out.

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

            For that, you should add a "once per position/order" pink block

            0_1531317791583_9371575d-01b0-4ce9-9690-b708517d214a-image.png

            If that block is not added, each time that the condition "pips away from open-price" is true, it happens a trade "close (partially)".

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

              Also, this "pips away from open-price" block has a parameter called "Open Price belongs to..." that changes the behavior of this block in this situation. Here is an example, and in this example I don't use this "once per..." block:

              https://fxdreema.com/demo/mt4-loop-partial-close (unfortunately at the moment of writing the pink blocks in the example doesn't work, but I will probably fix this soon after posting this)

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

              Online Users

              M
              H
              N
              H
              P
              E
              M
              F
              M

              15
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors