fxDreema

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

    The inner workings of "check profit average"?

    Questions & Answers
    5
    13
    1731
    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.
    • K
      KABO last edited by

      I've been reading all your comments and thought you're going where I want but unfortunately not

      I thought this person wanted to close trades after gaining 100 pips in a week, that's is to say from the beginning of trading calculate losses and see if you're currently 100pips higher then close all trades and begin again. This way if you made 200pips losses on Monday you might have to make 200pips wins to replace the losses then 100pips again to gain profit.

      If this is not what he said , please help me achieve that, I do not have time frame to gain that.

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

        Hi,

        I have attempted to program my EA to "once per bar" - "check profit average" and if the profit is greater than 100pips then to close all trades. 100 pips is my target for the week and by using the "once per bar" I essentially want the EA to wait for the bar to close, then check profit average, then close out.

        This is currently not functioning for me and I suspect it has to do with the "check profit average" block. In the Trades pool field I have running & history trades selected. Now my thinking was that the EA would average my profit from when it was initialized (eg Monday) but this assumption looks to be wrong. Do you know, is the EA looking into my previous MT4 trade history? and therefore was including trades in the average from previous weeks?

        Can you please provide me with some guidance on how I could check the average profit for the current week only?

        Any ideas would be greatly appreciated.

        Thanks Phil.

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

          100 pips per week does not sound like something that can be described with the word "average" to me. Try "Check profit (period of time)" instead. By the way, I forgot the meaning of its parameters, I guess I should think about more descriptions 😄 But maybe it would be tricky to set Monday-to-Friday in this particular block. I can also suggest to try Bucket blocks, note that in "Bucket of Closed Trades" you can specify these times in various ways

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

            Thanks for your reply. You are absolutely correct, check profit average is not the right block. Check profit period of time is the block I should use.

            A couple quick question on using this block (check profit period):

            If I use this block with no time period selected, but instead use the once per bar time filter to precede this block. Will the EA check the "total value (sum)" of all trades since the EA was initialized (once per bar)?

            How does the time period section of this block work? And how do I reference the week day shift? do I reference Monday with a number or do I use the word?

            I appreciate your help.
            Phil

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

              You can have trades closed years ago. Who cares about these long forgotten trades. You want to work with relatively new trades and the first time sets the oldest trade possible. For example, you may want to select only trades closed in the past 5 days, not anything older than that.

              I made this block because many people wanted to know what was the profit of the current day. How can you know this... by looking at all the trades existed after 0:00 of the current day.

              Once per bar only prevents the next block in the chain to run on every tick. Instead, it runs maximum one time for each bar. This block has no opinion about the work of any other block, it just limits their execution.

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

                Thanks for your reply.

                I have mad some progress using the "check profit (period of time)" block, I have grouped all my trades and then asked the block to check the sum of profits for that group and have just ignored the time portion of the block. This solution seems to be working very well, however, I have found another road block.

                The "check profit" period of time block seems to be summing the profits as it says but is ignoring their relationship to the losses.I want to sum profits & losses, eg. total net profit, not just the profits in isolation. Is this block capable of summing profits & losses or should I look for another block to perform this function?

                Phil.

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

                  This block sums OrderProfit() + OrderCommission() + OrderSwap() of the trades. OrderProfit() can be positive or negative. Yes, there is "profit" in the name of the block, but this does not mean that it skips losses.

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

                    Thanks for clarifying.

                    Phil.

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

                      @KABO But what do you need exactly?

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

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

                        @l-andorrà i want my take profit to remain at 100 pips and close trades once i hit that, but if it doesnt and hit my 50pips stop loss, i want my next tp to be adjusted to 150 pips so that i cover the previous loss of 50 pips.

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

                          And how many open trades can the bot have at the same time? Do you need that 'global' profit to be 100 pips combined?

                          (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
                          • P
                            princeomughele @fxDreema last edited by

                            @fxDreema But learnt it only works on the first tick of the day. After the first tick it doesn't check for such loss limit again??

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

                              I see you already asked this on the thread you created. Please don't duplicate questions on different threads.

                              (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

                              T
                              S
                              A
                              M
                              M
                              E
                              C
                              M
                              F
                              L
                              F
                              F
                              E

                              31
                              Online

                              146.6k
                              Users

                              22.4k
                              Topics

                              122.6k
                              Posts

                              Powered by NodeBB Forums | Contributors