fxDreema

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

    Show profit and loss values

    Questions & Answers
    3
    8
    2454
    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.
    • OntradingX
      OntradingX last edited by

      Does anyone here have any example of how to display profit or loss over a period of time on the screen?
      What I exactly want is to show in dollars

      Profit so far on the current day
      Profit so far in the current week
      Earnings so far in the current month

      Loss so far in the current day
      Loss so far in the current week
      Loss so far in the current month

      If it is possible to show me some project example in Fxdreema?

      Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
      Site: https://www.ontradingx.com.br
      Youtube: https://www.youtube.com/@ontradingx
      Boa sorte a todos nós!

      English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
      Website: https://www.ontradingx.com.br
      Youtube: https://www.youtube.com/@ontradingx
      Good luck to all of us!

      Q 3 Replies Last reply Reply Quote 0
      • Q
        q8carpenter @OntradingX last edited by

        @ontradingx Hello,

        Here is an example of how to show the profit equity so far per day. From that example you will have an idea of how to do it per week or month.

        Create a variable that on the start of each day gets set to your accounts equity. After that create a formula that subtracts the current equity from it and display it on the comment block.

        Keep in mind that by using these blocks run per tick and if your broker stops trading the price movements at midnight, then the block that sets the equity will not pass as I have set it in the example to 00:00. What I would do is just place a (once per bar) block and set the time frame to D1 so that with the open of each daily candle, the variable will be set no matter what time the broker start showing prices.

        There may be a simpler way that others can share, but that's the way I know.

        0_1627960518953_profit per day.png

        1 Reply Last reply Reply Quote 0
        • Q
          q8carpenter @OntradingX last edited by

          @ontradingx If you want to display the profit of closed trades, then that's a simpler story. Here is how to do it.

          0_1627960817753_profit per day.png

          OntradingX 1 Reply Last reply Reply Quote 0
          • OntradingX
            OntradingX @q8carpenter last edited by

            @q8carpenter

            https://fxdreema.com/shared/PO7lWT8ye0_1627983434386_profitorloss1.png

            Thanks for helping.
            I've been trying this way and what happened is it doesn't show on the screen what I need. See the image above.

            What I need is for the block to search for information on trades already closed, each one of the trades has to be computed in the gains or losses.
            I'm trying different ways and I don't see anything being written to the variable.

            What I want is that when the EA is put on the chart it checks all closed trades and separates them by day, week, month and year.

            With this, each new closed trade will keep these balances updated.

            If I graphed the EA now, then it should get these values:

            Daily gain - When placing the EA on the chart, it should check if there was any trade on the same day, if there was it shows its total value, if not it will show the value 0, if I open and close the trade it should show the value from this negotiation and only reset the next day and every day repeat this same routine.

            Weekly gain - When placing the EA on the chart, get the values ​​we already have of gain for the week, from Sunday (when the market starts) and sum up the profits and losses for the entire week until Friday (when the market closes).
            Every Sunday this balance must be reset.

            Monthly gain - When placing the EA on the chart it must obtain the sum of all gains and losses from the first day of the month to the last day of the month, this value must always be reset to zero on the first day of the following month.

            Annual gain - When placing the EA on the chart it should get and update the sum value of all gains or losses from the first day of the year to the last day of the year.
            Always reset the information on the first day of the following year.

            This is the project I'm testing.
            https://fxdreema.com/shared/PO7lWT8ye

            Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
            Site: https://www.ontradingx.com.br
            Youtube: https://www.youtube.com/@ontradingx
            Boa sorte a todos nós!

            English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
            Website: https://www.ontradingx.com.br
            Youtube: https://www.youtube.com/@ontradingx
            Good luck to all of us!

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

              @ontradingx Are you sure the WHOLE history of closed trades is available on your MT4. You are requiring your EA to search for a lot of trades.

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

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

                @l-andorrà Yes, I need to get information about these negotiations, I need them to be displayed on the screen, I want to look at the present and the past at all times.

                Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
                Site: https://www.ontradingx.com.br
                Youtube: https://www.youtube.com/@ontradingx
                Boa sorte a todos nós!

                English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
                Website: https://www.ontradingx.com.br
                Youtube: https://www.youtube.com/@ontradingx
                Good luck to all of us!

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

                  @ontradingx Then you need something like this:

                  https://fxdreema.com/shared/KOgbxxzac

                  The first block tree searches for ope trades right now and the second one for the closed ones. You need to add the appropriate time filter onc each tree and you will need as many trees as requested searching periods, of course.

                  (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
                  • Q
                    q8carpenter @OntradingX last edited by

                    @ontradingx In my two examples, one shows the profit loss of live trades and the other shows the profit/loss of closed trades. I see that you used the closed trades version but expected it to work on live trades. Use the other method.

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

                    Online Users

                    A

                    7
                    Online

                    146.8k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors