fxDreema

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

    Record real-time gain and loss in variables.

    Questions & Answers
    3
    7
    936
    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.
    • F
      fabiobioware last edited by

      I would like to know how to record real-time gains and losses in trading.

      By recording these gains and losses in a variable I would like to impose a condition that is as follows:

      Check if the total sum of the gain positions in progress has a value greater than the sum of the total loss positions in progress, that is, if the gain is greater than the loss, close all open positions.

      roar 1 Reply Last reply Reply Quote 0
      • roar
        roar @fabiobioware last edited by

        @fabiobioware You can put your account equity and balance into a condition.

        Need small help? Tag me in your post
        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

        1 Reply Last reply Reply Quote 0
        • F
          fabiobioware last edited by

          @roar I believe that I did not express myself well in what I wanted, I will put below an image, explanation and share the project:
          0_1583684277968_EQUAL.PNG

          The image shows some values that if added together give the value of -181.00

          I would like TOTA VALUE LOSS to add only the values that are negative in the trades in progress, if we add -9, -68 and -112 the value that should appear in TOTAL VALUE LOSS would be - 189.00

          In Total value Gain only 8.00

          1 Reply Last reply Reply Quote 0
          • l'andorrà
            l'andorrà last edited by

            Use this structure on the 'on Tick' tab before updating your 'Total Value Loss' variable:

            0_1583691061841_01.png

            (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

            (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

            (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

            1 Reply Last reply Reply Quote 0
            • F
              fabiobioware last edited by

              But this block checks the closed deals, I just want to check the ongoing deals.

              roar 1 Reply Last reply Reply Quote 0
              • roar
                roar @fabiobioware last edited by

                @fabiobioware Look hard and you will find a pink block for live trades as well

                Need small help? Tag me in your post
                Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                1 Reply Last reply Reply Quote 0
                • l'andorrà
                  l'andorrà last edited by

                  Sorry. I took the wrong block! 😉 Choose a 'For each trade' block.

                  (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                  (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                  (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

                  Online Users

                  H
                  H
                  M
                  S
                  S
                  L
                  E
                  M
                  A

                  21
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors