fxDreema

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

    Bucket of closed trades

    Questions & Answers
    3
    10
    3631
    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.
    • Pipperoni
      Pipperoni last edited by

      ![alt text](0_1522851415774_Bucket of closed trades.jpg image url)
      Can I use this block like any other condition ? When the condition in the block is met, it passes. In this case I want that in the current candle only 1 trade can be executed. So: After candle time of candle 1 and till candle time of candle 0 ... there can be maximum 1 trade. In case there is 0 trade .... the block passes, in case there is 1 trade the block does NOT pass. Correct ?
      Does this block works also in the Back Tester ? Can the block read from the tester trade history ?

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

        I made a simple EA to test this "Bucket of closed trades" block. But in no way I get it to pass.
        0_1523014692381_buckoct.jpg

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

          0_1523015068848_Bucket test7.mq4
          This is the test EA ... How to use this "Bucket of closed trades" block ?????

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

            Thanks for the help Fxdreema !

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

              The block passes for me and "Trade Activity" print something on the chart that is almost too small to be seen: 0_1523630222644_86afaa46-8e2a-4da5-9dfe-e48310d63a3a-image.png
              You can try the example with the Delay block in visual testing, so at the moment when Delay is reached, the EA would wait for a while and you will be able to see what is going on in "slow motion"

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

                I would like to ask a different thing about this interesting block. Let's see the following configuration:

                0_1523877679946_01.png

                If I understand it correctly, this block will pass when the following conditions are met:

                1. All closed trades from any symbol in the History so far are checked.
                2. The overall amount of accumulated pips for all those closed trades is calculated.
                3. Only those closed trades whose pips result is above the overall amount of 150 are being considered.

                Let me give you an example. There are 11 closed trades so far. The first 8 ones sum up for +148 pips. The ninth one is summing up +20 pips. That means that the block only passes when this ninth (and any following) trade is closed. Am I right?

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

                  0_1523878802085_bucket test 9.mq4
                  0_1523879210431_bucket11.jpg
                  In this simple setting the block "Bucket of closed trades" will look back 6 minutes from NOW (the server time) and pass when there are LESS than 10 trades in these last 6 minutes ... correct ? So I may expect that when I start the EA in the back tester, and the bucket sees 0 trades ..(less than 10) ... it will pass. Nope ! 😞
                  When I run the EA in the tester it shows 0 trades. When I bypass the block it shows hundreds of trades. I tested on 2 different brokers : same result.

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

                    @isp00rt Not at all. You have 250 pips there, but the parameter should be Time. Pips and Time are different things. This block only selects bunch of trades, it doesn't make calculations. Calculations are made later in the Condition block.

                    isp00rt 1 Reply Last reply Reply Quote 0
                    • fxDreema
                      fxDreema @Pipperoni last edited by

                      @pipperoni All the parameters of this blocks are just filters, designed to select only certain trades. The last parameter is a must when working with closed trades, because in normal situation you may have 100s of closed trades and you don't want to select all of them. So this parameter only makes sure that no more than 10 trades are selected. If there are 5 trades in this period, they will be selected. If there are 15 - only 10 of them.

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

                        @fxdreema Then what is that pips option for? How does it work? Can I select a bunch of closed trades considering the amount of pips they got?

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

                        Online Users

                        E
                        F
                        M
                        F
                        J
                        F
                        M
                        N
                        H
                        K

                        19
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors