Disregard most of what I said in the my last 2 or 3 posts.
If you run the last System you posted (including Time = 160000) but run on 10K bars then 15k bars then 25k bars then 50k bars then 100k bars … you will see that 5 trades could be opened (to Aug 23) by your System.
The trade opened in Dec 2023 stays open throughout 2024 and so the 2 dates you show in your code in 2024 cannot take a trade because you use If Not Longonmarket.
Delete If Not Longonmarket and make DEFPARAM CumulateOrders = True (not False as currently) and attached is the result … 5 trades opened.