fxDreema

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

    balance limit to open operations

    Questions & Answers
    2
    6
    613
    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.
    • ajmd97fx
      ajmd97fx last edited by

      hello, i want to set negative profit limit to open more trades. My idea is that if the negative profit "Profit (Equity-Balance)" is higher than 5% of the "Balance", do not open more operations
      0_1602792315165_2358066c-cc42-46d6-a79c-14a216e9cc74-image.png

      In "Adjust" I write "++" because the value of this variable is negative and to make the comparison I need it positive, I don't know if it is correct to put a double sign ++ to convert the negative value into positive

      Also, I would like to take this data and write it on the graph in a comment, how can I do it? the truth is that I'm not good at working with variables

      ANTONIO JESUS

      S 1 Reply Last reply Reply Quote 0
      • S
        seb 0 @ajmd97fx last edited by

        @ajmd97fx
        Hey i think I think this is what you need to do
        0_1602858411234_Capture d’écran (239).png

        ajmd97fx 1 Reply Last reply Reply Quote 1
        • ajmd97fx
          ajmd97fx @seb 0 last edited by

          @seb-0 thanks, I have achieved it by multiplying by -1

          *(-1)

          this returns any negative value in positive, because my problem was that being the negative value it will always be smaller than a percentage of an integer value

          0_1602858846005_ba1b67b7-1759-45bb-8599-4016485558a7-image.png

          ANTONIO JESUS

          S 1 Reply Last reply Reply Quote 0
          • S
            seb 0 @ajmd97fx last edited by seb 0

            @ajmd97fx
            Sorry i should have done this configuration 0_1602859178634_Capture d’écran (240).png
            In yours you should reverse the "<" sign if you want the difference to be higher than X% of the Balance

            ajmd97fx 1 Reply Last reply Reply Quote 1
            • ajmd97fx
              ajmd97fx @seb 0 last edited by

              @seb-0 the reading is as follows: if the current profit is less than 5% -> keep trading

              ANTONIO JESUS

              S 1 Reply Last reply Reply Quote 0
              • S
                seb 0 @ajmd97fx last edited by

                @ajmd97fx
                This is in the case of a (positive)profit inferior to 5% of the balance
                0_1602871061078_Capture d’écran (241).png

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

                Online Users

                B
                A
                J
                D
                E

                22
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors