Bucket Of Closed Positions Problem
-
This has always worked fine. A few months ago, I noticed it would not work on most pairs, but on a few, it did. This happens on both The5%ers and Traders Way. I've tried everything, even creating a simple EA that ONLY contains the Bucket Of Closed Positions block. This morning, for example, on Traders Way, GBPCAD works, but GBPUSD does not. On the The5%ers, AUDJPY works, but GBPCAD and GBPNZD do not. This has been happening for a few months now. I've been trying to code around it, but this block is crucial to my EA strategy. Any ideas? Is anybody else having issues?
-
However, this DOES work for Strategy Tester on all pairs.
-
I NEVER use bucket of trades. You can get the exact same results with other blocs (pink blocks) most of the time. Try use them instead.
-
Thank you. I have no problem with the "Bucket Of Open Trades," but only the "Bucket of Closed Trades." I like the convenience of this block because I can enter the "start" time right in the block, and it works fine in the strategy tester. I looked at the pink block called "For Each Closed Position," but I could not get that to work or find any documentation about closed trades.
I want to know the value of the closed trades after a certain date and time. For example, in the "Bucket Of Closed Trades," I can enter the start time as components like month = 5, day = 2, hour = 1, and min = 15, etc., right in the block itself. Can you duplicate that function using "For Each Closed Position"
-
@raveon Yes, you can do this, but you will need to transform those time limits into UNIX time:

-
I haven't tested but this should do it: https://fxdreema.com/shared/WOrmkSz6e
-
@jstap Thank you, but this will not work the way I need it to as it uses "Shift Back." I need to be able to enter a specific date and time as the starting value. Thank you for this however
-
Then you need something like this:
