CHECK LAST CLOSED TRADES
-
I would like your help because I.m trying to check if my last trades where BUY or SELL ones.
Foe this I have to check if my last 10 trades weher of one BUY or SELL
If a BUY in between a Sell sequence it will reset the sequence.BUY / BUY / BUY / BUY / BUY / BUY / BUY / BUY / BUY / BUY ----> (THEN PASS)
BUY / BUY / BUY / BUY / BUY /** SELL ** / BUY / BUY / BUY / BUY /BUY ----> (THEN COUNT RESTARTS SINCE THE SELL WITH A TOTAL OF FIVE BUYS INSTEAD OF TEN BUYS )
-
There is no block to check this, but here is something that collects that data - https://fxdreema.com/shared/5viHJzgYc I have 2 numeric Variables. They are reset every time in "For each Closed Trade". This block is set to work with up to 10 closed trades. For each one of them it checks the type (Buy or Sell) and depending on this one of both Variables is incremented. When all 10 trades are checked, the "Comment" block runs and shows the results.
-
try it this way, not easiest, but can work

https://ctrlv.cz/shots/2016/07/03/XB8e.png -
tks !!!!