How to select the last 2 trades
-
let say i have 8 running trades that executed in different time and different pairs. how to select the last 2 trades so i can put condition for it? what block should i use?
-
@keanzoe You can select them this way:

-
What I usually do is use the "For Each Trade" block to loop through all my trades, then sort them by the time they were executed. To get just the last two, I put in a condition using the "Get Trade Count" so it only grabs the ones with the highest index numbers. This way, it always picks up the most recent trades, and you don’t have to worry about specific pairs or IDs.
-
Thanks for the answer. That's what I'm looking for

.