fxDreema

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

    To detach older position with current TP more than XX

    Questions & Answers
    2
    5
    1154
    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.
    • A
      abu zaki last edited by

      Hai everyone...
      I has tried for many style.. but still not working..
      Hope some one please help.... 😏 😐

      Using (START TRADE LOOP - not more than "n" trade = 1)
      My EA can detach the OLDER, NEWEST, PROFITABLE FIRST & PROFITABLE LAST = no problem..

      PROBLEM = How to detach amount off TP after

      (START TRADE LOOP)

      • Filter by type = buy
      • Loop direction = Profitable Last
      • Not more than "n" trade = 1

      If the amount (DISTANCE) off TP reach more than certain value...

      Next Block will working.

      TQ......

      ......
      FXDREEMA-01.png

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

        Inside the loop you can access trade parameters in Condition in category "(in loop) Trade/Order in Loop", so you can use Condition to check the distance. Then you can close that trade with "(in loop) Close trade" block.

        Or if you want to check the distance between the current price and SL, then "(in loop) Pips away from SL" can be used. At some point of view this is the real SL distance at the moment.

        1 Reply Last reply Reply Quote 0
        • A
          abu zaki last edited by

          ok.. i TRY..

          1 Reply Last reply Reply Quote 0
          • A
            abu zaki last edited by

            OK its working....

            Thank

            ......
            FXDREEMA-03.png

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

              I created similar thing because I can't see your project, and it seems to work here: http://fxdreema.com/shared/CD88sQECb

              Note that TP as fixed size is calculated as TakeProfit-OpenPrice and transformed into pips, but if TP is below OP for buy trade, it will be incorrect. So, where is your TP in relation to OP for that trade? And what about other blocks - is "Start trades loop" pass?

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

              Online Users

              F
              A
              R
              M
              E
              S
              M
              M
              H
              B

              16
              Online

              146.8k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors