@tradingstrategy88 Notice the section that says no more than 'n' trades... In my bot I have a variable to say how many trades there are. Then even time a trade gets opens... It adds one one=to this variable and every time a trade gets closed, it removed one from the variable. That why my bot only checks the exact number of the current open trades. This way when you go from newest to oldest... You will also look at the newest trade. And when you look from oldest to newest, you will always look at the oldest trade that is active in the market.
I've only been here for like 2 weeks so I might be wrong in my suggestion. But I think this is what you mean and it works fine for me