Bucket of closed trades
-

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 ? -
I made a simple EA to test this "Bucket of closed trades" block. But in no way I get it to pass.

-
0_1523015068848_Bucket test7.mq4
This is the test EA ... How to use this "Bucket of closed trades" block ????? -
Thanks for the help Fxdreema !
-
The block passes for me and "Trade Activity" print something on the chart that is almost too small to be seen:

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" -
I would like to ask a different thing about this interesting block. Let's see the following configuration:

If I understand it correctly, this block will pass when the following conditions are met:
- All closed trades from any symbol in the History so far are checked.
- The overall amount of accumulated pips for all those closed trades is calculated.
- 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?
-
0_1523878802085_bucket test 9.mq4

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. -
@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.
-
@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.
-
@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?