fxDreema

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

    How to close trades on percentage ?

    Questions & Answers
    3
    7
    428
    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.
    • M
      Mani13 last edited by

      Hi,
      Please anyone helps which block to be used if profit percentage reach a level and all trades get closed, I know the check unrealised p/l block

      1 Reply Last reply Reply Quote 0
      • T
        tpt last edited by tpt

        I don't think there is a block that can help you to achieve this.

        As a workaround, I would suggest you to create a constant and two variables in order to convert the target percentage into money.

        For example, if you want to close all positions when 1% gain is being reached, the formula would be: 1/100*Account Balance;

        and then use a condition block to compare the result with your equity. If they are equal, close all positions.

        https://fxdreema.com/shared/QHnOMRDS

        M 1 Reply Last reply Reply Quote 0
        • M
          Mani13 @tpt last edited by

          @tpt Thank you for the efforts you have made, problem solved.
          Further if I want to print this profit percentage achieved on chart in terms daily, weekly or total. If I use comment block I am unable to find percentage mode in this block it is having average mode and other 3 only,

          M 1 Reply Last reply Reply Quote 0
          • M
            Mani13 @Mani13 last edited by

            @forexbob-0 Do this work if use Bucket of closed trades block, Do this help in printing profit percentage ?

            1 Reply Last reply Reply Quote 0
            • C
              capitalfreedom last edited by

              Did the suggestion work for you @forexbob-0

              M 1 Reply Last reply Reply Quote 0
              • M
                Mani13 @capitalfreedom last edited by

                @drewliedadeuce yeah that worked, I make some changes to it as per my flexibility, but printing profit achieved on daily, weekly and monthly is still pending and I left this task for now.

                C 1 Reply Last reply Reply Quote 0
                • C
                  capitalfreedom @Mani13 last edited by

                  @forexbob-0 Ok thanks

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

                  Online Users

                  C
                  I
                  I
                  E
                  E
                  O
                  O
                  D
                  F
                  K

                  24
                  Online

                  146.6k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors