fxDreema

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

    Store Profit whenever there is position // if no more position, profit resets to 0

    Questions & Answers
    3
    16
    463
    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

      Hello guys,

      How do i store Profit into a variable whenever there is position. Then if there are no more position, then the variable profit resets to 0.

      For example I trade Buy and sell at the same time. Now the buy is closed at 10$.

      So the variable profit will be = 10$

      Now, if i close the sell position and then there are no morer positions, the variable profit resets to $0.

      Thank you.

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

        Not sure if I fully get it. If your buy is $10 in profit, your sell will be at least -$10 in loss, so the combined profit will be slightly negative, not positive 10. Do you mean counting buy and sell profits separately maybe?

        (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à yes, counting buy and sell profits separately.

          will only reset once there are no more positions.

          1 Reply Last reply Reply Quote 0
          • P
            pipsondeck last edited by

            Any idea please?
            Its like i am hedging and earning profits from buy and sell

            Check position > 1
            Check closed trades
            Buy profit = store in variable

            Chexk position = 0
            Buy and sell profit = 0

            1 Reply Last reply Reply Quote 0
            • P
              pipsondeck last edited by

              This is what i came up with:
              But it did not store any closed position profit.

              https://fxdreema.com/shared/7pdFJTjse

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

                you don't need the check count block, did you want the profit or the price level?

                image.png

                Learn fxDreema Without the Wait!

                My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                Don’t miss out

                Click here➡️ https://mybook.to/fxDreema to get your copy today!

                Enjoy! 😊

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

                  @jstap i want to profit to be stored WHENEVER there is still position. when all positions are closed either buy/sell. The stored profit resets back to 0

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

                    use purple (like you have ) on trade, then pink blocks to get the last trade profit. This should give you all you need.

                    Learn fxDreema Without the Wait!

                    My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                    The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                    Don’t miss out

                    Click here➡️ https://mybook.to/fxDreema to get your copy today!

                    Enjoy! 😊

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

                      @jstap but that will only store the last position profit right? What if i closed 5 buys and 3 sells all in profit? I want to separately store them

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

                        more difficult, but simply tee off the pink with saving the information for each running trade

                        Learn fxDreema Without the Wait!

                        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                        Don’t miss out

                        Click here➡️ https://mybook.to/fxDreema to get your copy today!

                        Enjoy! 😊

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

                          @jstap said in Store Profit whenever there is position // if no more position, profit resets to 0:

                          more difficult, but simply tee off the pink with saving the information for each running trade

                          Apologies for this, but what do you mean by tee off the pink?

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

                            what I mean is the for each (pink) - under the trade closed block - connect more than 1 pink for each changing the relevant modify variable block, then the next pink off yellow, this will collect the profit from every trade.

                            Learn fxDreema Without the Wait!

                            My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                            The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                            Don’t miss out

                            Click here➡️ https://mybook.to/fxDreema to get your copy today!

                            Enjoy! 😊

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

                              @jstap I tried to recreate what you said but i cant still store the profits:

                              Hope you can check. thanks.

                              https://fxdreema.com/shared/OVmGXqs1c

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

                                I mean like this, every time it com[lates the loop and saves the relevant data into the relevant variable, it will move onto the next, then the next etc

                                image.png

                                Learn fxDreema Without the Wait!

                                My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                                The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                                Don’t miss out

                                Click here➡️ https://mybook.to/fxDreema to get your copy today!

                                Enjoy! 😊

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

                                  @jstap so it will only save up to 4 closed trades? would it be possible to make it unlimited?

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

                                    Yes create as many as you need, just make each pink block missis already recorded trades and save the next. The bink block for trade 4 would look like this:
                                    image.png

                                    Learn fxDreema Without the Wait!

                                    My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                                    The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                                    Don’t miss out

                                    Click here➡️ https://mybook.to/fxDreema to get your copy today!

                                    Enjoy! 😊

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

                                    Online Users

                                    S
                                    A
                                    M
                                    M
                                    E
                                    C
                                    M
                                    F
                                    L
                                    F
                                    F
                                    E
                                    K

                                    29
                                    Online

                                    146.6k
                                    Users

                                    22.4k
                                    Topics

                                    122.6k
                                    Posts

                                    Powered by NodeBB Forums | Contributors