fxDreema

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

    Profitability annual, monthly and yearly

    Questions & Answers
    2
    17
    2335
    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.
    • tcanuto
      tcanuto last edited by

      Hello fxDreema.
      I found the Bucket block for projects in MQL5. In this case, as I do to comment on current, monthly and annual profitability?

      Would you show me a sample project?

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

        Try Check profit (period of time). But to check montly and annual profits... this can be too much for the backtester, so make sure you do such calculations only when you need to. Don't calculate annual profits on every tick.

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

          Okay. Can be used on Trade, not needing to be in on Tick.
          I do not need instantaneous results, but only the closed positions.
          I want to know the result of January for example. How would it be? It's on February?
          How do I use this data within the block Comment?

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

            Then try Bucket of Closed Trades. You'll find Time A and Time B settings in this block, and those settings have multiple formats to input time data. Clear Not more than N trades or set it to 0, because you don't know how much trades there are in a whole month. The blocks should only select those closed trades that were closed between Time A and Time B. Then in **Condition **or Comment you will find the Bucket category and you will get the calculation from there

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

              __Then try Bucket of Closed Trades. You'll find Time A and Time B settings in this block, and those settings have multiple formats to input time data. Clear Not more than N trades or set it to 0, because you don't know how much trades there are in a whole month. The blocks should only select those closed trades that were closed between Time A and Time B. Then in **Condition **or Comment you will find the Bucket category and you will get the calculation from there[/quote:3317gek0]
              Okay. But I can not find the Bucket in MT5 project.

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

                Damn, I forgot that this is missing for MT5. I guess I need to see what can I do with this for MT5. Right now I don't have other good ideas. Of course, you can do this with few pink blocks and a variable, but it will be a little bit ugly.

                But why do you need that? No one ever asked me for such an old profits and also my logic says that profits/losses in the past should be forgotten.

                Otherwise you can try to keep Balance in a variable and update it every month, or something like that. Balance is global, but if this is what you want, why not

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

                  Okay fxDreema. That happens! Forget about a block among many, it is acceptable.

                  I will be awaiting this bucket block.

                  Ah ... now MT5 is almost equal to the MT4, it will accept Hedge operations. This complete for me. Not to mention also that the backtest is faster than the MT4, the pause for the test, test forward, etc.

                  I need it so you do not look for external data, such as in MQL5, myfxbook, etc, and just having the information on the chart.
                  I need only one year of data. From January to December. If possible in previous years, the better.

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

                    What, hedge operations, really? 😮

                    I added those bucket things, you can try them. I tested them, but who knows... if you see some problems tell me

                    MetaQuotes are changing things. Sometimes things are going faster, other times - slower. Like now, after I started to use the latest compilers (which is now the metaeditor.exe file), the compilation process is much slower than before. I don't know about the hedging thing in MT5, but I honestly wish them to kill this shitty version and just continue with MT4 🙂

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

                      Okay. Thanks for the add Bucket block. I'll be doing tests.

                      More information about hedge in MT5.
                      https://www.mql5.com/en/articles/2299

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

                        I finished doing. You have some my mistake?
                        Is not showing the values of Bucket of Closed Trades blocks.
                        https://fxdreema.com/shared/IqFjXiy5

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

                          If any "Bucket of..." block is not capable of loading existing positions/orders, it does not pass. The idea is that if you don't have something to select, there is no point to work with it. You can connect each yellow output to the next block as well, but at the end you will see some weird numbers on the chart. Or connect each of them to the Comment block (in parallel).

                          But I found that there are problems sometimes and I need to check how things are working when Time A and Time B is used.

                          This is good for MT5, they finally admit that MT4 is better than MT5 🙂

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

                            Ok. Add a comment block for each bucket block.
                            https://fxdreema.com/shared/XyTRsa7ed

                            This happening the following errors:

                            Very digits after the point. I could only have 2 digits after the decimal point in the results.

                            Average Profit with value equal to the Total Profit.

                            Count: Displays number of positions currently open or all opened in total? For this appearing only 1, but were open many positions.

                            Profit: Showing only the result of the last position and not the sum of all of them during the period.

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

                              I am aware of these long numbers. i know this sucks and I don't know how to fix this entirely 🙂

                              If you are talking for block 5, I also always have Count = 1.0 and Total Profit is equal to Average Profit, but I think this is notmal because there is only 1 position at a time and it's total profit is also it's average profit.

                              The name of block 5 should be "Bucket of Positions", but remember that you are in MT5 which normally have 1 position and just recently it got this "hedging" thing. The Count here could be bigger than 1 only if you work with other positions from different symbols.

                              Again, this block is for the currently running position(s), not for closed positions that are in the history! For closed positions (or trades, or whatever you call them) you are actually using multiple "Bucket of Closed..." blocks.

                              Yes, each "Comment" block creates it's own individual space of letters and it's expected to see such overlapping.

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

                                __
                                More information about hedge in MT5.
                                https://www.mql5.com/en/articles/2299[/quote:jmng2xn1]

                                I decided to try this thing. From what I see, I just need to open a new account with the new option checked - "Use hedging in trading". Ok, but I tried few brokers and my checkbox is always disabled (gray). I am missing something or it's too early to try this stuff 🙂

                                I was initially thinking that this will be somehow enabled by default, but it looks that brokers must support it. For a moment I was even thinking that MT5 is finally trying to get better 🙂

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

                                  yes yes ... even this. I believe now more popular MT5.
                                  Even I do not using hedge, I felt like it is missing something, but now it will be complete.

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

                                    Well, if this thing depends on the broker, do you really believe that brokers will start enabling this option? Especially in USA and Brazil. I don't think so. And I don't know why people will prefer MT5 in other countries where they can use MT4

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

                                      Yes Yes. Will the customer's choice of option. But I believe this Metaquotes gradually giving more focus on MT5 and maybe, just maybe, just stay with her in the near future.

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

                                      Online Users

                                      J
                                      A
                                      Z
                                      T

                                      16
                                      Online

                                      146.7k
                                      Users

                                      22.4k
                                      Topics

                                      122.6k
                                      Posts

                                      Powered by NodeBB Forums | Contributors