How to reset bucket of trades?
-
hi, i need to know how to reset the 'bucket of trades' block . any idea?
-
What do you exactly mean?
-
in my strategy for every 10 open trades I want to hedge by opening an opposite direction with the size equal to the last 10 open trades. I use bucket of trades as you see in the link below. what happens is that I don't know why but it keeps opening trades and I want to reset the process when all the positions are closed. so here are the problems: 1. how can I hedge every 10 open trades by opening 1 opposite direction? (sometimes 100 trades will open in a row when there is a strong trend) 2. how can I reset the whole thing when the bunch of trades are closed( TP is based on Dollar).I think I'm using wrong blocks because it doesn't generally works.
https://fxdreema.com/shared/idR8f8R5 -
@l-andorrà in my strategy for every 10 open trades I want to hedge by opening an opposite direction with the size equal to the last 10 open trades. I use bucket of trades as you see in the link below. what happens is that I don't know why but it keeps opening trades and I want to reset the process when all the positions are closed. so here are the problems: 1. how can I hedge every 10 open trades by opening 1 opposite direction? (sometimes 100 trades will open in a row when there is a strong trend) 2. how can I reset the whole thing when the bunch of trades are closed( TP is based on Dollar).I think I'm using wrong blocks because it doesn't generally works.
https://fxdreema.com/shared/idR8f8R5 -
I guess more trades are open because the buffer inside the 'bucket of trades' block is not properly reset. You should use a variables structure instead. You can control how and when they are reset.
-
@l-andorrà Thank you, I'll try to see how it works