fxDreema

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

    Save Profit on closed trades

    Questions & Answers
    3
    8
    275
    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.
    • P
      pipsondeck last edited by

      I've been working on a project with this condition.

      1. If there is open position -> every closed position -> store the profits
      2. if no position -> profit reset to 0

      this is what my condition looks like but seems it doesnt reset and it continues to add up all the time.

      what seems to be the correct way?

      7d0a098d-217b-4f98-8a00-9b3a02a28ac6-image.png

      1 Reply Last reply Reply Quote 0
      • S
        sktsec last edited by

        It seems repeatedly adding up the profits. Have you try make it just run once , like pass once, once per trade, ...

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

          You can remove the 'if position buy' block. It is redundant in this context. You will need a separate block tree headed with a 'no position' block to reset variable to 0, as you want. Resetting it on the white input dot of pink loops in fxDreema doesn't work as expected, sadly. It should, I mean, your logic is correct. But input dots on pink blocks are messy, to put it mildly.

          (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.

          P 1 Reply Last reply Reply Quote 1
          • P
            pipsondeck @sktsec last edited by

            @sktsec i wanted it to store whenever there is open position and resets only when the account has 0 positions.

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

              @l-andorrà
              i want to EA to start counting profits only when there is 1 position.

              so if the account position is clear (no positions either buy/sell), then the counter will reset back to 0.

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

                In that case you need to use the 'if position' block and specify value 0 to the variable at the yellow output dot there, not in the 'for each position' pink 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.

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

                  @l-andorrà ill try thank you.

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

                    You're welcome.

                    (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

                    A
                    A
                    E
                    B
                    M
                    J
                    B

                    19
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors