Check if last 10 trades Sell or Buy
-
Hello all
I need to know if my last 10 trades were sell ones. (or buy ones).
They are all in the same group, and doesn´t matter if they win or loose.
I´ve seen and there is only the posibility to check the last one.
Any idea ?? how to do it ??
Tks !!!
-
Such thing was never requested. But here is a way: https://fxdreema.com/shared/xjBTMFbkc
I have a variable with initial value of true. Also, it is set to true every time. Then I check the last 10 closed trades. If one of them is Buy, my variable is set to false, which means that not all trades are sell (there is a buy).
The "break" block is to stop the loop when there is no need to do more checks.What is the practical use of this?
-
F.E.
When I have "frozen" my buys, it is a way to follow the correct trend.